Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 677 Bytes

File metadata and controls

11 lines (9 loc) · 677 Bytes

php-rest-api

This is a step by step PHP 8 & MySQL REST API tutorial, In this tutorial i am going to share with you how to create a PHP 7 CRUD (Create, Read, Update, Delete) RESTful API with MySQL database.

Create Simple PHP 8 CRUD REST API with MySQL & PHP PDO

PHP CRUD API

  • GET - http://localhost:8080/api/read.php Fetch ALL Records
  • GET - localhost:8080/api/single_read.php/?id=2 Fetch Single Record
  • POST - http://localhost:8080/api/create.php Create Record
  • POST - http://localhost:8080/api/update.php Update Record
  • DELETE - localhost:8080/api/delete.php Remove Records