Skip to content

Latest commit

 

History

History
63 lines (36 loc) · 1.04 KB

README.md

File metadata and controls

63 lines (36 loc) · 1.04 KB

API_Framework

A PHP Framework for creating APIs

PHP Version

This project is created using PHP 8.0+

Coding Standard is PSR-12

Installation

$ 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

  1. JWT Token [token]
  2. 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

Example Project

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

License

MIT

Copyright

2022 - fariscode