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 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 1mo ago

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 82% of packages

Maintenance71

Regular maintenance activity

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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

487d 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.2k67.8M190](/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.7M255](/packages/laravel-dusk)[laravel/prompts

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

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

A simple API extension for DateTime.

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

PHPackages © 2026

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