tom.kiernan/salsa
Composer 安装命令:
composer require tom.kiernan/salsa
包简介
PHP Router
README 文档
README
Open source, PHP routing enging
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
PHP >= 5.4
Installing
$ composer require tom.kiernan/salsa
$Salsa = new Salsa\Salsa( array( "baseRoute" => "test/route/ ) ); // Set base route for woking in sub directories
$Salsa->addRoute( "/", "test" ); // Ouputs "test"
$Salsa->addRoute( "name/:name", function( $name ) { echo $name } ) // example "name/tomkiernan" will output "tomkiernan"
$Salsa->run(); // actually runs the router;
Deployment
Add additional notes about how to deploy this on a live system
Built With
- Composer - Composer
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We are still looking to settle on a versioning system (open to suggestions)
Authors
- Tom Kiernan - Creator - [Tom Kiernan](composer require tom.kiernan/salsa)
License
This project is licensed under the GNU License - see the LICENSE.md file for details
Acknowledgments
- Hat tip to anyone whose code was used
- Inspiration
- etc
统计信息
- 总下载量: 49
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-09-24