PHPackages                             krag/sroute - 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. krag/sroute

ActivePackage[Framework](/categories/framework)

krag/sroute
===========

Simple Routing Package

v1.0.0(7mo ago)10MITPHP

Since Nov 30Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/Kenura-R-Gunarathna/Sroute)[ Packagist](https://packagist.org/packages/krag/sroute)[ RSS](/packages/krag-sroute/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Sroute - Simple PHP Router
==========================

[](#sroute---simple-php-router)

Sroute is a lightweight, zero-dependency routing library for PHP. It supports RESTful methods, named routes, middleware, and controller-based routing.

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

[](#installation)

```
composer require krag/sroute
```

Documentation
-------------

[](#documentation)

Full documentation is available at [sroute.krag.lk](https://sroute.krag.lk).

Features
--------

[](#features)

- **RESTful Verbs**: GET, POST, PUT, PATCH, DELETE support.
- **Named Routes**: Generate URLs for routes using their names.
- **Middleware**: Chainable middleware support.
- **Controller Support**: Clean syntax for controller-based routing.
- **Zero Dependencies**: Lightweight and fast.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance64

Regular maintenance activity

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16fa199ee3e7f015da619240b71bbd3a80e381d231a7ed3ba37b61e0ef084b19?d=identicon)[Kenura-R-Gunarathna](/maintainers/Kenura-R-Gunarathna)

---

Top Contributors

[![Kenura-R-Gunarathna](https://avatars.githubusercontent.com/u/125591481?v=4)](https://github.com/Kenura-R-Gunarathna "Kenura-R-Gunarathna (7 commits)")

---

Tags

designecommerceecommerce-designtoy-project

### Embed Badge

![Health badge](/badges/krag-sroute/health.svg)

```
[![Health](https://phpackages.com/badges/krag-sroute/health.svg)](https://phpackages.com/packages/krag-sroute)
```

###  Alternatives

[laravel/dusk

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

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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