PHPackages                             soils-w/miniroute - 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. soils-w/miniroute

ActiveLibrary

soils-w/miniroute
=================

a simple phproute

v1.0.1(5y ago)05[1 issues](https://github.com/soils-w/miniroute/issues)MITPHPPHP &gt;=5.4.0

Since Mar 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/soils-w/miniroute)[ Packagist](https://packagist.org/packages/soils-w/miniroute)[ RSS](/packages/soils-w-miniroute/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

miniroute
=========

[](#miniroute)

### Install

[](#install)

```
composer require soils-w/miniroute

```

### Example

[](#example)

```
use Miniroute\Route;

Route::get('', 'app\controller@Index\index');
Route::get('/hei',function(){
    echo "单身的程序员们啊，找老婆就联系我吧，哈哈哈哈哈哈";
});

 Route::dispatch();

```

控制器名称使用驼峰式，首字母大写（下划线格式会自动转化为驼峰式） 方法名用小写加下划线

.htaccess(Apache)：

```
RewriteEngine On
RewriteBase /

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?$1 [QSA,L]

```

.htaccess(Nginx):

```
rewrite ^/(.*)/$ /$1 redirect;

if (!-e $request_filename){
	rewrite ^(.*)$ /index.php break;
}

```

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

1870d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f38180578975f19f8765c7f5ddc224f1263a6871917f43e8d429d4342334b616?d=identicon)[soils-w](/maintainers/soils-w)

---

Top Contributors

[![soils-w](https://avatars.githubusercontent.com/u/33411354?v=4)](https://github.com/soils-w "soils-w (6 commits)")

### Embed Badge

![Health badge](/badges/soils-w-miniroute/health.svg)

```
[![Health](https://phpackages.com/badges/soils-w-miniroute/health.svg)](https://phpackages.com/packages/soils-w-miniroute)
```

PHPackages © 2026

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