A PHP Framework for creating APIs
This project is created using PHP 8.0+
Coding Standard is PSR-12
$ composer update
$ composer dump-autoload
Import api.sql to your phpmyadmin
Generate 256-bit key from here allkeysgenerator
Update .env file
The system has 2 authentication methods
- JWT Token [token]
- API Key [key]
After that just create an account using /register endpoint and POST method
$ httpie post http://localhost/api/register name="Root" username="admin" password="admin"
or
Use the example to create an account
You can reuse the example for any project you want
Enjoy
TaskController.php
TaskGateway.php
Are an example project to show how the system work
Also you can reuse the code in it and change it to your specifications
MIT
2022 - fariscode