Download the PHP package elzekool/koolrouter without Composer
On this page you can find all versions of the php package elzekool/koolrouter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package koolrouter
KoolRouter
KoolRouter is a fast, easy to integrate Router. It's inspired by by klein.php and [AltoRouter] (https://github.com/dannyvankooten/AltoRouter).
It should me used in conjunction with a dispatcher and HTTP interface, as it does (by purpose) not provides these features.
Key features
- Routing URL's to callback functions
- Reverse routing a route and parameters to the corresponding path
- Simple routing syntax
Starting with KoolRouter
- Make sure PHP 5.3.* is installed
- Install KoolRouter using Composer or manually
- Make KoolRouter handle your requests (for example trough URL Rewriting)
Supported Routes
You can use the following syntax within your routes.
Example
Composer
- Get Composer
-
Add
elzekool/koolrouter
to yourcomposer.json
file: - Install/update your dependencies with:
php composer.phar install
License
(MIT License)
Copyright (c) 2013 Elze Kool [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.