An API base for my Slim4 boilerplate

dev-master 2022-02-20 16:19 UTC

This package is auto-updated.

Last update: 2024-04-16 19:19:16 UTC


README

WORK IN PROGESS

Init the library:

$api = new \Thibaultjunin\Api\Api();
$api->setAuth(new AuthInterfaceImpl());
$api->setUser(UserInterfaceImpl::class);
$api->setDevMode(true);

To create a helper make a class extending \Thibaultjunin\Api\Helpers\Helper.

To create a controller make a class extending \Thibaultjunin\Api\Controllers\ApiController