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

2.0.1(1y ago)072↓100%proprietaryPHP

Since Nov 14Pushed 3w 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 today

READMEChangelog (3)Dependencies (5)Versions (8)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

37

↑

LowBetter than 84% of packages

Maintenance73

Regular maintenance activity

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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 ~210 days

Total

3

Last Release

441d ago

Major Versions

v1.0.0 → 2.0.02024-07-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/befe1a9311ac0d3afdcce05cd36e7e789603bba16fd8820f6a116caa455ec907?d=identicon)[AdrianDUP](/maintainers/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

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k65.4M158](/packages/laravel-telescope)[spiral/roadrunner

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

8.4k11.6M75](/packages/spiral-roadrunner)[laravel/dusk

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

1.9k35.9M228](/packages/laravel-dusk)[laravel/fortify

Backend controllers and scaffolding for Laravel authentication.

1.7k38.8M194](/packages/laravel-fortify)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.0M104](/packages/cakephp-chronos)[laravel/prompts

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

702172.4M444](/packages/laravel-prompts)

PHPackages © 2026

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