krag / sroute
Simple Routing Package
v1.0.0
2025-11-30 23:00 UTC
This package is auto-updated.
Last update: 2026-03-01 00:48:43 UTC
README
Sroute is a lightweight, zero-dependency routing library for PHP. It supports RESTful methods, named routes, middleware, and controller-based routing.
Installation
composer require krag/sroute
Documentation
Full documentation is available at sroute.krag.lk.
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
This project is licensed under the MIT License - see the LICENSE file for details.