smartdevkz/simpleapi

生成 CRUD api 的另一种更快的方式

0.0.1 2020-10-08 13:11 UTC

This package is auto-updated.

Last update: 2024-09-29 01:17:46 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);
});