https://github.com/hazardland/router.php
Simpliest Laravel like router one class one file router
https://github.com/hazardland/router.php
php-router php-router-standalone
Last synced: about 2 months ago
JSON representation
Simpliest Laravel like router one class one file router
- Host: GitHub
- URL: https://github.com/hazardland/router.php
- Owner: hazardland
- Created: 2018-12-04T09:43:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T15:15:39.000Z (over 6 years ago)
- Last Synced: 2025-03-10T18:43:51.966Z (over 1 year ago)
- Topics: php-router, php-router-standalone
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
```php
$id]);
})
->name('news') //short key of route
->type('id','int'); //restrict type of id
/*
call some method of class
*/
app::post ('news/publish','home.index');
app::run();
//get current locale
app::locale();
app::url('news',5);