PHPackages                             eylmz/router - 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. [API Development](/categories/api)
4. /
5. eylmz/router

ActiveLibrary[API Development](/categories/api)

eylmz/router
============

Router - Fast, flexible routing for PHP, enabling you to quickly and easily build RESTful web applications.

v1.0.0(8y ago)15474MITPHPPHP &gt;=5.4.0

Since Aug 19Pushed 8y ago4 watchersCompare

[ Source](https://github.com/eylmz/Router)[ Packagist](https://packagist.org/packages/eylmz/router)[ Docs](http://emre.pw)[ RSS](/packages/eylmz-router/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Router
======

[](#router)

Router - Fast, flexible routing for PHP, enabling you to quickly and easily build RESTful web applications.
Version : 1.0.0

- [Installation](#installation)
- [Simple Usage](#simple-usage)
- [Available Router Methods](#available-router-methods)
- [Route Parameters](#route-parameters)
- [Controller and Method Parameters](#controller-and-method-parameters)
- [Regular Expression Constraints](#regular-expression-constraints)
- [Named Routes](#named-routes)
- [Route Groups](#route-groups)
- [License](#license)

---

### Installation

[](#installation)

You can download it and using it without any changes.

OR use Composer.

It's recommended that you use Composer to install Route.

```
$ composer require eylmz/router

```

---

### Simple Usage

[](#simple-usage)

#### .htaccess

[](#htaccess)

```
Options -Indexes
Options -MultiViews
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

```

#### index.php

[](#indexphp)

```
