Sroute is a lightweight, zero-dependency routing library for PHP. It supports RESTful methods, named routes, middleware, and controller-based routing.
composer require krag/srouteFull documentation is available at sroute.krag.lk.
- 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.
This project is licensed under the MIT License - see the LICENSE file for details.