PHPackages                             blank-framework/file-path-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. [Framework](/categories/framework)
4. /
5. blank-framework/file-path-router

ActiveLibrary[Framework](/categories/framework)

blank-framework/file-path-router
================================

Package for the Blank Framework FilePathRouter

3.0.0(2mo ago)075proprietaryPHP

Since Nov 14Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Blank-Framework/FilePathRouter)[ Packagist](https://packagist.org/packages/blank-framework/file-path-router)[ RSS](/packages/blank-framework-file-path-router/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (6)Dependencies (12)Versions (12)Used By (0)

FilePathRouter
==============

[](#filepathrouter)

FilePathRouter is a simple routing package that maps a path such as `/blog/posts` to the directory `/blog/posts`. If that directory exists, it executes the `index.php` file inside.

Usage
-----

[](#usage)

To start, instantiate the `FilePathRouter` class and pass the absolute path to the directory where your routes will be located. If it is in the root of your project directory is could be like the code snippet below:

```
$router = new FilePathRouter(__DIR__ . '/routes');
```

To route your requests, get the requested path for example /blog and pass it into the function routeRequest as shown below:

```
$router->routeRequest('/blog');
```

Directory Structure and Routing
-------------------------------

[](#directory-structure-and-routing)

FilePathRouter's routing mechanism is dependent on your project's directory structure. The home route (/) is mapped to the index.php file in the /routes directory. To create a new path, such as /blog, simply create a directory named blog within /routes. Place an index.php file in this new directory, and this file will be executed whenever the /blog path is requested.

Exceptions
----------

[](#exceptions)

If the routes path you provided in the constructor does not exist, the router will throw a `RoutesPathNotFoundException`. If the requested route could not be found, the router will throw a `RouteNotFoundException`.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance84

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~174 days

Recently: every ~153 days

Total

6

Last Release

81d ago

Major Versions

v1.0.0 → 2.0.02024-07-31

2.0.1 → 3.0.02026-04-03

1.0.1 → 2.0.22026-04-03

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8139635?v=4)[Adrian du Plessis](/maintainers/AdrianDUP)[@AdrianDUP](https://github.com/AdrianDUP)

---

Top Contributors

[![AdrianDUP](https://avatars.githubusercontent.com/u/8139635?v=4)](https://github.com/AdrianDUP "AdrianDUP (4 commits)")[![MarjovanLier](https://avatars.githubusercontent.com/u/2212059?v=4)](https://github.com/MarjovanLier "MarjovanLier (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/blank-framework-file-path-router/health.svg)

```
[![Health](https://phpackages.com/badges/blank-framework-file-path-router/health.svg)](https://phpackages.com/packages/blank-framework-file-path-router)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[slim/slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs

12.3k51.8M1.4k](/packages/slim-slim)[bref/bref

Bref is a framework to write and deploy serverless PHP applications on AWS Lambda.

3.4k10.2M61](/packages/bref-bref)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[cakephp/authentication

Authentication plugin for CakePHP

1143.9M95](/packages/cakephp-authentication)[typo3/cms-core

TYPO3 CMS Core

3312.9M4.8k](/packages/typo3-cms-core)

PHPackages © 2026

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