Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitkill/reckoner-php
A high-performance php micro-router
https://github.com/bitkill/reckoner-php
Last synced: about 10 hours ago
JSON representation
A high-performance php micro-router
- Host: GitHub
- URL: https://github.com/bitkill/reckoner-php
- Owner: bitkill
- License: gpl-2.0
- Created: 2014-11-25T00:11:20.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-10T14:06:55.000Z (over 9 years ago)
- Last Synced: 2024-11-02T00:28:58.895Z (7 days ago)
- Language: PHP
- Homepage:
- Size: 289 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
reckoner-php
============a light php rest micro router class,
now with groups!this is an attempt of making a faster, identical php "slim" router
you can also set custom http methods thru some php magic!example:
get('/hello/:name', function($name) {
echo 'hello ' . $name;
});// fast parameter(s) support
$app->get_p('/hello/for/:p(/:p)', function($name, $surname ="") {
echo 'hello ' . $name . ' ' . $surname;
});
// custom MYOPTIONS method
$app->myoptions('/api/:var', function($var) {});// groups
$app->group('/group', function() use ($app) {
echo 'i am in a group!';
$app->get('/hello', function() {
echo "hello in group!";
});
});