Skip to content

how to create a PHP 7 CRUD (Create, Read, Update, Delete) RESTful API with MySQL database.

Notifications You must be signed in to change notification settings

renpv/php-rest-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

php-rest-api

This is a step by step PHP 7 & 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 7 CRUD REST API with MySQL & PHP PDO

PHP CRUD API

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

About

how to create a PHP 7 CRUD (Create, Read, Update, Delete) RESTful API with MySQL database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%