router
A lightweight and simple object oriented PHP Router
File Explorer
- CI.yml
- .htaccess
- index.php
- .htaccess
- index.php
- Router.php
- bootstrap.php
- RouterTest.php
- .gitignore
- .php_cs.dist
- CHANGELOG.md
- composer.json
- LICENSE
- phpunit.xml.dist
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
composer
View Details ▼
composer
A package-based dependency manager for PHP projects.
composer init
Interactively create a `composer.json` file:
composer require {{user/package}}
Add a package as a dependency for this project, adding an entry to `composer.json`:
composer install
Install all the dependencies in this project's `composer.json` and create `composer.lock`:
php
View Details ▼
php
PHP command-line interface.
php {{path/to/file}}
Parse and execute a PHP script:
php {{[-l|--syntax-check]}} {{path/to/file}}
Check syntax on (i.e. [l]int) a PHP script:
php {{[-a|--interactive]}}
Run PHP inter[a]ctively:
phpunit
View Details ▼
phpunit
PHPUnit test runner.
phpunit
Run tests in the current directory. Note: Expects you to have a `phpunit.xml'`:
phpunit {{path/to/TestFile.php}}
Run tests in a specific file:
phpunit --group {{name}}
Run tests annotated with the given group:
