sadick/resty
Composer 安装命令:
composer require sadick/resty
包简介
A simple php router
README 文档
README
Resty
A fast, minimal with zero dependancies php router that enables you write straight forward rest api's
Installation
Use Composer to install Resty
composer require sadick/resty
Usage
<?php require 'vendor/autoload.php' use Resty\Router; $app = new Router(); $app->get('/users', function ($req, $res) { $res->send("hello world"); }); $app->serve();
You can test that your requests are being served using the built in php server
php -S localhost:4000
Navigating to http://localhost:4000/users will display hello world
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-18