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 RecordsGET - localhost:8080/api/single_read.php/?id=2
Fetch Single RecordPOST - http://localhost:8080/api/create.php
Create RecordPOST - http://localhost:8080/api/update.php
Update RecordDELETE - localhost:8080/api/delete.php
Remove Records