PHPackages                             zloynick/joole-components-routing - 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. zloynick/joole-components-routing

ActiveJoole-component[Framework](/categories/framework)

zloynick/joole-components-routing
=================================

8.1.3.2(4y ago)0171GPL-3.0+PHPPHP ^8.1

Since Apr 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ZloyNick/joole-components-routing)[ Packagist](https://packagist.org/packages/zloynick/joole-components-routing)[ RSS](/packages/zloynick-joole-components-routing/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (1)

Joole Component: Router
=======================

[](#joole-component-router)

This component allows you to configure routes for your project.

Getting started
---------------

[](#getting-started)

- Install this dependency via composer: `composer install zloynick/joole-components-routing`

Configuration
-------------

[](#configuration)

Add to components this in your joole.php configuration file:

```

'components' => [
        ...,
        [
            'name' => 'router',
            'class' => \joole\components\routing\RoutingComponent::class,
            // Component options
            'options' => [
                // Routes path
                'routes' => __DIR__.'/routes/',
            ],
        ],
        ...,
    ],

```

Using
-----

[](#using)

Create your routes in the folder that you specified in the component configuration:

```
----------- routes.php -----------
```

...
// Closure using.
BaseRouter::register('route.test', '/my/action/:name/:and_id', function(string $name, int $and_id):\joole\framework\http\Response{
          return response();
      }
);
// Controller using.
BaseRouter::register('route.test', '/my/action/:name/:and_id', ['\app\controllers\DefaultController::class', 'index']);
// OR
BaseRouter::register('route.test', '/my/action/:name/:and_id', '\app\controllers\DefaultController::class@index');
...

```
```

Validation of requests
----------------------

[](#validation-of-requests)

Use [Validator](https://github.com/ZloyNick/joole-framework/blob/master/src/validator/http/RequestValidator.php) to create a request parameter validation class.

Example:

```

...
BaseRouter::register('route.test', '/my/action/:name/:and_id', function(string $name, int $and_id):\joole\framework\http\Response{
          return response();
      }
)->withValidators(YourValidator1::class, ..., new Validator2());
...

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~2 days

Total

4

Last Release

1470d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cff51652283bc946a839f9f084ba4a69c6917191c48b83412dab6ffc6e5dc472?d=identicon)[ZloyNick](/maintainers/ZloyNick)

---

Top Contributors

[![ZloyNick](https://avatars.githubusercontent.com/u/23015694?v=4)](https://github.com/ZloyNick "ZloyNick (7 commits)")

---

Tags

routingcomponentjoolejoole-frameworkjoole-componentjoole-routing

### Embed Badge

![Health badge](/badges/zloynick-joole-components-routing/health.svg)

```
[![Health](https://phpackages.com/badges/zloynick-joole-components-routing/health.svg)](https://phpackages.com/packages/zloynick-joole-components-routing)
```

###  Alternatives

[klein/klein

A lightning fast router for PHP

2.7k1.1M31](/packages/klein-klein)[nette/application

🏆 Nette Application: a full-stack component-based MVC kernel for PHP that helps you write powerful and modern web applications. Write less, have cleaner code and your work will bring you joy.

44615.4M983](/packages/nette-application)[laravel/folio

Page based routing for Laravel.

608453.9k27](/packages/laravel-folio)[atk4/ui

Agile UI - Web Component Framework written in PHP

454540.1k32](/packages/atk4-ui)[pecee/simple-router

Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.

696214.6k17](/packages/pecee-simple-router)[contributte/application

Extra contrib to nette/application

352.8M7](/packages/contributte-application)

PHPackages © 2026

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