PHPackages                             bodawahid/php-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. bodawahid/php-routing

ActiveLibrary[Framework](/categories/framework)

bodawahid/php-routing
=====================

this is a routing package made by boda wahid

02PHP

Since Sep 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bodawahid/phpPackage)[ Packagist](https://packagist.org/packages/bodawahid/php-routing)[ RSS](/packages/bodawahid-php-routing/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Description
===========

[](#description)

This package was developed during \[PHP Course - beginned to advance\]

It's a router for PHP to handle the requests.

Support us
----------

[](#support-us)

to support me for the package or the course you can contact

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

[](#installation)

You can install the package via composer:

```
composer require bodawahid/php-routing:dev-main@dev
```

Usage
-----

[](#usage)

you need to have a .htaccess file to redired everything to index or any other file.

```
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php [QSA,L]
```

then inside that file you can use the router to handle the reuqies.

passing name of that file that is going to handle the request.

```
Router::handle("GET","/contact","contact.php");
```

or

```
Router::get("/contact","contact.php");
```

Or you can pass anonymous and predefined functions to handle the request

```
Router::handle("GET","/contact",function(){
    echo "contact me at info@bodawahid.com";
});
```

or

```
function contactMe(){
    echo "contact me at info@bodawahid.com";
}
Router::get("/contact","contactMe");
```

Testing
-------

[](#testing)

This was for learning purposes. Not tests has been written yet.

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Contribution guidelines will be written here or on a separate file like changelog. for now no contribution is accepted.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please contact me at bodawahid456@gmai;.com to report security vulnerabilities.

Credits
-------

[](#credits)

- [bodawahid](index.phpithub.com/bodawahid)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](index.phpd) for more information.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

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/6ca9979afb98f03cf03dae5291efb4e7b6c79f9b4b862e376769fbb53e40667e?d=identicon)[bodawahid](/maintainers/bodawahid)

---

Top Contributors

[![bodawahid](https://avatars.githubusercontent.com/u/141155012?v=4)](https://github.com/bodawahid "bodawahid (12 commits)")

### Embed Badge

![Health badge](/badges/bodawahid-php-routing/health.svg)

```
[![Health](https://phpackages.com/badges/bodawahid-php-routing/health.svg)](https://phpackages.com/packages/bodawahid-php-routing)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/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.7M259](/packages/laravel-dusk)[laravel/prompts

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

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

A simple API extension for DateTime.

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

PHPackages © 2026

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