Open source, PHP routing enging
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.
PHP >= 5.4
$ 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;
Add additional notes about how to deploy this on a live system
- Composer - Composer
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We are still looking to settle on a versioning system (open to suggestions)
- Tom Kiernan - Creator - [Tom Kiernan](composer require tom.kiernan/salsa)
This project is licensed under the GNU License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used
- Inspiration
- etc