There is no license information available for the latest version (v1.0.1) of this package.

PHP Router

v1.0.1 2019-02-19 14:07 UTC

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

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