PHPackages                             zippy1981/php-routing-example - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. zippy1981/php-routing-example

ActiveLibrary[Framework](/categories/framework)

zippy1981/php-routing-example
=============================

Example of custom PHP routing

v0.3(7y ago)09MITPHP

Since Apr 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zippy1981/php-example-routes)[ Packagist](https://packagist.org/packages/zippy1981/php-routing-example)[ RSS](/packages/zippy1981-php-routing-example/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

PHP Routing Example
===================

[](#php-routing-example)

CI/CD
-----

[](#cicd)

[![CircleCI](https://camo.githubusercontent.com/545b61570ac6072e9f1cb2fdaebcd45686da6df24d8a9433eded82d5cb362cd6/68747470733a2f2f636972636c6563692e636f6d2f67682f7a69707079313938312f7068702d6578616d706c652d726f757465732e7376673f7374796c653d737667)](https://circleci.com/gh/zippy1981/php-example-routes)[![codecov](https://camo.githubusercontent.com/2d095c1992542e3bd4c40a7ff2a24f0e81c0e154f3b288844f81f76ebb541bf1/68747470733a2f2f636f6465636f762e696f2f67682f7a69707079313938312f7068702d6578616d706c652d726f757465732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/zippy1981/php-example-routes)

Composer stats
--------------

[](#composer-stats)

[![Latest Stable Version](https://camo.githubusercontent.com/c6224f1102ad9a388142c45ca0c733ccc4a3b40bd0149d3367ded47fcee37962/68747470733a2f2f706f7365722e707567782e6f72672f7a69707079313938312f7068702d726f7574696e672d6578616d706c652f762f737461626c65)](https://packagist.org/packages/zippy1981/php-routing-example)[![Total Downloads](https://camo.githubusercontent.com/bc7c985f12e06ee9d2f3cae7a4810e02f7e6e38604fc53dcdc22942dcdbf35bb/68747470733a2f2f706f7365722e707567782e6f72672f7a69707079313938312f7068702d726f7574696e672d6578616d706c652f646f776e6c6f616473)](https://packagist.org/packages/zippy1981/php-routing-example)[![Latest Unstable Version](https://camo.githubusercontent.com/2c3dfc0bc34d81242d40fbd973b70e29ce80d00f30c6b14b18ad941501567d1f/68747470733a2f2f706f7365722e707567782e6f72672f7a69707079313938312f7068702d726f7574696e672d6578616d706c652f762f756e737461626c65)](https://packagist.org/packages/zippy1981/php-routing-example)[![License](https://camo.githubusercontent.com/efb71cbd0a265217914e33f886c6daeeb0bee38295ec311369cb50f835861303/68747470733a2f2f706f7365722e707567782e6f72672f7a69707079313938312f7068702d726f7574696e672d6578616d706c652f6c6963656e7365)](https://packagist.org/packages/zippy1981/php-routing-example)

### Download stats

[](#download-stats)

[![Monthly Downloads](https://camo.githubusercontent.com/c1c07f553068dea4b5d6ff1f520ad808cf08b49e329899d6af7898e8afdf3e76/68747470733a2f2f706f7365722e707567782e6f72672f7a69707079313938312f7068702d726f7574696e672d6578616d706c652f642f6d6f6e74686c79)](https://packagist.org/packages/zippy1981/php-routing-example)[![Daily Downloads](https://camo.githubusercontent.com/533b0e55adf0dbe5fd0fd083277f10361e912912a5b258722744f45e26a776b4/68747470733a2f2f706f7365722e707567782e6f72672f7a69707079313938312f7068702d726f7574696e672d6578616d706c652f642f6461696c79)](https://packagist.org/packages/zippy1981/php-routing-example)

Using
-----

[](#using)

1. Create a project with `composer init` and follow the prompts.
2. `composer require zippy1981/php-example-routes`.
3. Create a namespace to store your controllers.
4. Add an index.php with the following:

```
