PHPackages                             codedgr/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. codedgr/router

ActiveLibrary[API Development](/categories/api)

codedgr/router
==============

Route the URL variables to your project

1.0.0(7y ago)025MITPHPPHP &gt;=7.1.0

Since Jun 6Pushed 7y agoCompare

[ Source](https://github.com/codedgr/router)[ Packagist](https://packagist.org/packages/codedgr/router)[ Docs](https://github.com/codedgr/router)[ RSS](/packages/codedgr-router/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Router
======

[](#router)

Route the URL variables to your project

Install
-------

[](#install)

Add the following to your .htaccess file in order to redirect everything to the index.php file.

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^(.*)$ index.php

```

\##Build the URL Define `PARSE_URL` with your domain name:

```
define('PARSE_URL','https://www.example.gr')

```

Use the `url()` function with as many attributes you want.

```
$url = Parse::url('class', 'method', ['var'=>'foo','foo'=>'boo']);

```

the above example will output

```
https://www.example.gr/class/method/var=foo&foo=boo

```

\##Parse variables from a URL Contract the `Parse` object passing the URL and use the `get` method to get an array of variables.

```
$array = (new Parse($url))->get();

```

If we use the previous URL, this example will output

```
Array
(
    [0] => class
    [1] => method
    [2] => Array
        (
            [var] => foo
            [foo] => boo
        )

)

```

You may also pass which key your want get

```
$var = (new Parse($url))->get(1);

```

If we use the previous URL, this example will output a string `method` or `false` if there is no value

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2900d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fabb412180db5250724ef8144d5fb430864b5398362f54397f2ad0bc72c0ec3?d=identicon)[codedgr](/maintainers/codedgr)

---

Top Contributors

[![keramaros](https://avatars.githubusercontent.com/u/39630991?v=4)](https://github.com/keramaros "keramaros (1 commits)")

---

Tags

router

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codedgr-router/health.svg)

```
[![Health](https://phpackages.com/badges/codedgr-router/health.svg)](https://phpackages.com/packages/codedgr-router)
```

###  Alternatives

[phroute/phroute

Fast, fully featured restful request router for PHP

739462.1k29](/packages/phroute-phroute)[pear2/net_routeros

This package allows you to read and write information from a RouterOS host using MikroTik's RouterOS API.

248111.7k4](/packages/pear2-net-routeros)[tobion/openapi-symfony-routing

Loads routes in Symfony based on OpenAPI/Swagger annotations

4219.5k](/packages/tobion-openapi-symfony-routing)[szenis/routing

A small and simple PHP router

162.4k2](/packages/szenis-routing)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
