smartdevkz/simpleapi

Yet another faster way to generate CRUD api

0.0.1 2020-10-08 13:11 UTC

This package is auto-updated.

Last update: 2025-06-29 01:59:13 UTC


README

Examples: 

Generating a controller from db table:
php cli make:controller UserController --table-name=users


Using get params: 
/api/?subjectId=15

$app->get('/', function ($params, $obj) {
    return getAll("select * from topics where subject_id=:subjectId",$params);
});