ibandominguez/restup-back
Composer 安装命令:
composer require ibandominguez/restup-back
包简介
README 文档
README
Build a rest api in a single file.
Use Example
<?php require __DIR__.'/../vendor/autoload.php'; use IbanDominguez\RestUp\App; App::create([ 'JWT_KEY' => 'supersecret', 'DB_HOST' => 'localhost', 'DB_NAME' => 'prueba', 'DB_USER' => 'root', 'DB_PASS' => '', ]) ->auth([ 'admin@email.com' => 'admin' ]) ->add('books', [ ['title' => 'title', 'type' => 'string', 'rules' => 'required'], ['title' => 'date', 'type' => 'date', 'rules' => 'required|date'], ]) ->add('posts', [ ['title' => 'title', 'type' => 'string', 'rules' => 'required'], ['title' => 'body', 'type' => 'string'], ['title' => 'date', 'type' => 'date', 'rules' => 'date'] ], [ 'except' => ['show'], 'protected' => ['save'] ]) ->run(true);
Tests
git clone https://github.com/ibandominguez/restup-back.git
cd restup-back
phpunit
Roadmap
- Image uploads
- JWT auth configurable routes
Contributors
- Ibán Domínguez
License
Mit
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-10-06