- This is a simple php-api project to make an API for your application using PHP native.
- PHP v8.0 or higher.
- composer
git clone https://github.com/ahmed-osama2022/php-api
cd php-api
composer install- Then serve the public folder
# if you're using php-cli 
php -S localhost:8000 -t public- You should put your .envfile at the root folder in the project.
DB_HOST=
DB_NAME=
DB_PORT=
DB_USER=
DB_PASS=- 
If you start serving the project you should see this welcome page at your serving link. 
- 
Put all your credentials for the database in the .envfile.
- 
Define all your routes as explained in the src/Router.phpfile.
- 
You will see an example in the files to tell you How to use it fine. 
- 
Start making the logic of your application as contrllers you defined in the App/controllersfolder.

