Recommend this page to a friend! |
PHP and JavaScript route for hash module.
"require": {
"symfony/yaml": "^4.0"
}
"dependencies": {
"ajaxsim": "^1.0.0"
}
_Installation_
php: $~ composer require kolserdav/routejs
js: $~ npm i route-fhash
_Route settings_
file name: /config/route/routes.yaml
#Example routes.yaml
nameroutegroup1 : #Require field custom name
hash: #Require field and name
nameroute1 : filename1::module1 #Custom fields with special format
nameroure2 : filename2::module2
nameroutegroup2 :
hash :
nameroute3 : filename3::module3
nameroute4 : filename4::module4
nameroute4 : filename4::module5
_Using php_
script uri: /routejs-data
require_once '../vendor/autoload.php';
use Avir\Hash\Reader;
$s = new Reader();
$s->getRoutes();
_Using javascript_
let route = require('route-fhash');
route('dir/with/route/files');
Classes of Sergey Kol'miller | > | PHP Router Library JS | > | Download .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
Groups | Applications | Files |
Groups |
HTTP | HTTP protocol clients, headers and cookies | View top rated classes |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
src (1 file, 1 directory) | ||||
composer.json | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Install with Composer - Download all files: routejs.tar.gz routejs.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|