Download the PHP package rootlogin/jsrouting-provider without Composer
On this page you can find all versions of the php package rootlogin/jsrouting-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rootlogin/jsrouting-provider
More information about rootlogin/jsrouting-provider
Files in rootlogin/jsrouting-provider
Package jsrouting-provider
Short Description javascript routing provider for the silex framework
License GPL-3.0+
Homepage https://rootlogin.ch
Informations about the package jsrouting-provider
Silex JSRouting Provider
The JSRouting Provider is a silex routing provider for javascript, that exposes routes to a javascript file. Then you can generate routes for use with javascript frameworks like AngularJS.
Installation
Add the provider to your composer.json
Register the provider in your silex application:
Set the route option expose to true.
Include and use it in your frontend like this.
Console
If you want to use the console commands please install at least saxulum/saxulum-console. It will be automatically activated after you registered the provider.
Available Commands
- jsrouting:dump: This dumps the router with the known routes (buggy, ATM);
- jsrouting:dump:router.js: This only dumps the router.js. You need to add the routes manually.
Run the tests
Go to the base directory of the jsrouting-provider. Do a composer install
and enter vendor/bin/phpunit
.
Run the javascript tests
Do a npm install
and enter node_modules/.bin/gulp test
. Or if you have installed gulp globally enter gulp test
.
Contribution
Pull request are welcome. Or if you can't or want code you can also contribute by opening a ticket if you see something is wrong.
Warning
This project is in early development stages. No warranty if it kills your kittens or starts a nuclear war ;)