PHPackages                             alin11/routerion - 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. alin11/routerion

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

alin11/routerion
================

Fast and powerful PHP router

v0.1.13(7y ago)1022MITPHPPHP ^5.3.0|^7.0

Since Mar 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/AliN11/Routerion)[ Packagist](https://packagist.org/packages/alin11/routerion)[ Docs](https://github.com/AliN11/Routerion)[ RSS](/packages/alin11-routerion/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Routerion - PHP Router
======================

[](#routerion---php-router)

A simple, fast and powerful PHP router

- Define routes easily
- Dynamic route parameters
- Supports various HTTP methods
- REST API Support

Installation
------------

[](#installation)

1. You can install Routerion with composer:

`$ composer require alin11/routerion`

2. Create a `.htaccess` file on the root directory:

```
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

RewriteRule ^(.*)$ index.php [NC,L]

```

3. Create `config.php` file or add following `PHP Constants` to your configuration file:

```
