PHPackages                             sidvind/php-routes - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. sidvind/php-routes

ActiveLibrary[HTTP &amp; Networking](/categories/http)

sidvind/php-routes
==================

Routing for PHP projects

v1.6.2(6mo ago)14.5k[1 issues](https://github.com/ext/php-routes/issues)BSD-3-ClausePHPPHP ^8.2 || ^8.2 || ^8.3 || ^8.4CI passing

Since Nov 12Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ext/php-routes)[ Packagist](https://packagist.org/packages/sidvind/php-routes)[ RSS](/packages/sidvind-php-routes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (22)Used By (0)

PHP-routes
==========

[](#php-routes)

[![PHP](https://github.com/ext/php-routes/actions/workflows/php.yml/badge.svg)](https://github.com/ext/php-routes/actions/workflows/php.yml) [![Coverage Status](https://camo.githubusercontent.com/54394901da45b6e2b8c63cd1b034dd9768c0ef8d6af38b38668285268d3598ca/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6578742f7068702d726f757465732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ext/php-routes?branch=master)[![Documentation](https://camo.githubusercontent.com/20fe96bc589c1ace7b5e4c1395da33d2e32fa2614b1c268e8563922337876942/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f7069702f62616467652f3f76657273696f6e3d6c6174657374)](http://php-routes.readthedocs.io/en/latest/)

Routing for MVC-ish PHP projects.

```
composer require sidvind/php-routes

```

Example
-------

[](#example)

Put routes in a separate file, e.g. `routes.php`:

```
