PHP REST API without any framework and CRUD operations
📧
Contents
/api folder contains all PHP files for the CRUD operations
/config folder contains Mysql database configurations
/db folder contains database(.sql) file
/models folder contains a single Student.php for database logic
😀
How to use this project
-
Well, first clone or download this repo.
-
Create a database and import db/studentdb.sql file in your database.
-
Change database configurations in config/Database.php file.
-
Check your endpoints.
📌
Endpoints
http://localhost/php_rest_api_without_framework/api/get.php
http://localhost/php_rest_api_without_framework/api/get_one.php
http://localhost/php_rest_api_without_framework/api/post.php
http://localhost/php_rest_api_without_framework/api/put.php
http://localhost/php_rest_api_without_framework/api/delete.php
📰
License
❤️
Loved this project?
Please give me a star