krag/sroute

Simple Routing Package

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:package

pkg:composer/krag/sroute

v1.0.0 2025-11-30 23:00 UTC

This package is auto-updated.

Last update: 2025-12-01 04:22:26 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.