PHPackages                             miskynscze/freerouter - 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. miskynscze/freerouter

AbandonedArchivedLibrary[Framework](/categories/framework)

miskynscze/freerouter
=====================

FreeRouter where the easy routing begins the pain ends.

v0.1.3a(4y ago)248PHP

Since Feb 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/miskynscze/freerouter)[ Packagist](https://packagist.org/packages/miskynscze/freerouter)[ RSS](/packages/miskynscze-freerouter/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

FreeRouter
==========

[](#freerouter)

Painless routing for your PHP 8+ project with REST support.

#### Installation (Still WIP)

[](#installation-still-wip)

```
composer require miskynscze/freerouter
```

#### Example (Basic)

[](#example-basic)

```
#[Controller]
class ClassController implements IRouter {

    #[Request("/")]
    #[Method(RequestMethod::GET)]
    public function home(): string {
        return "Hello, world!";
    }
}

//Getting RouterConfig
$config = new RouterConfig();
$router = new RouterWrapper();

//Running RouterWrapper
$router->config($config)->run(new ClassController());
```

It will return

```
Hello, world!
```

#### Example (Basic + parameters)

[](#example-basic--parameters)

```
#[Controller]
class ClassController implements IRouter {

    #[Request("/page/{id}")]
    #[Method(RequestMethod::GET)]
    public function page(string $id): string {
        return "You are on page ($id)";
    }
}
```

It will also return a string, but with parameters! For example for URL /page/10

```
You are on page 10
```

#### Example (REST)

[](#example-rest)

```
#[RestController]
class ClassController implements IRouter {

    #[Request("/user/{id}")]
    #[Method(RequestMethod::GET)]
    public function user(string $id): string {
        return [
            "id" => $id,
            "name" => "Test"
        ];
    }
}
```

It will return (for example /user/1)

```
{"id": 1, "name": "Test"}
```

##### Different request methods

[](#different-request-methods)

GET, POST, PUT, DELETE

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.1% 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

Every ~72 days

Total

4

Last Release

1686d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/722227876008ed3d40bf5e4207fe6ba50e9371954f948ba51cec2db50db8c97d?d=identicon)[miskynscze](/maintainers/miskynscze)

---

Top Contributors

[![dominikmiskovec](https://avatars.githubusercontent.com/u/75794111?v=4)](https://github.com/dominikmiskovec "dominikmiskovec (25 commits)")[![miskynscze](https://avatars.githubusercontent.com/u/79511842?v=4)](https://github.com/miskynscze "miskynscze (7 commits)")

---

Tags

composeropensourcephpphp-libraryphp8routing

### Embed Badge

![Health badge](/badges/miskynscze-freerouter/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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