PHPackages                             maiconfss/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. maiconfss/router

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

maiconfss/router
================

A classic Router is easy, fast and extremely uncomplicated. Create and manage your routes in minutes!

08PHP

Since Sep 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/maiconfss/router_website)[ Packagist](https://packagist.org/packages/maiconfss/router)[ RSS](/packages/maiconfss-router/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Router
======

[](#router)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Pequeno, simples e descomplicado. O router é um componentes de rotas PHP com abstração para MVC, trabalha em sua própria camada de forma isolada e pode ser integrado sem segredos a sua aplicação.

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

[](#installation)

Router is available via Composer:

```
"maiconfss/router": "^1.0"
```

or run

```
composer require maiconfss/router
```

Documentation
-------------

[](#documentation)

Para mais detalhes sobre como usar o router, veja a pasta de exemplo com detalhes no diretório do componente. Para usar o router é preciso redirecionar sua navegação para o arquivo raiz de rotas (index.php) onde todo o tráfego deve ser tratado. O exemplo abaixo mostra como:

Veja os exemplos!

O router é preciso redirecionar sua navegação para o arquivo raiz de rotas (index.php) onde todo o tráfego deve ser tratado. O exemplo abaixo mostra como:

RewriteEngine On Options All -Indexes

ROUTER WWW Redirect.
====================

[](#router-www-redirect)

RewriteCond %{HTTP\_HOST} !^[www](http://www). \[NC\] RewriteRule ^ [https://www.%{HTTP\_HOST}%{REQUEST\_URI}](https://www.%%7BHTTP_HOST%7D%%7BREQUEST_URI%7D) \[L,R=301\]

ROUTER HTTPS Redirect
=====================

[](#router-https-redirect)

RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP\_HOST}%{REQUEST\_URI} \[L,R=301\]

ROUTER URL Rewrite
==================

[](#router-url-rewrite)

RewriteCond %{SCRIPT\_FILENAME} !-f RewriteCond %{SCRIPT\_FILENAME} !-d RewriteRule ^(.\*)$ index.php?route=/$1

Credits
-------

[](#credits)

- [Maicon Fernando](https://github.com/maiconfss) (Developer)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/maiconfss/routes) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[phmlabs/annovent

Simple lightweight event dispatcher using annotations for registering listeners

113.3k](/packages/phmlabs-annovent)

PHPackages © 2026

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