Oihana PHP

Oihana PHP Routes

Declarative, composable HTTP route definitions for PHP 8.4+, built on Slim.

πŸ“š Documentation

Narrative user guides (FR + EN), with examples:

You are currently browsing the auto-generated API reference (phpDocumentor).

πŸš€ Features

  • 🧭 A composable Route base and per-verb route classes β€” GetRoute, PostRoute, PutRoute, PatchRoute, DeleteRoute, OptionsRoute, ListRoute.
  • πŸ“„ Higher-level routes β€” DocumentRoute and I18nRoute for documents and localized paths.
  • 🚩 Declarative route options via the RouteFlag bit flags.
  • 🧩 Route registration helpers β€” HttpMethodRoutesTrait, HasRouteTrait, plus withPlaceholder() and responsePassthrough().
  • πŸ”— Built on Slim and wired through a PSR-11 container.
  • πŸ§ͺ 100% unit-test line coverage.

πŸ“¦ Installation

This library requires PHP 8.4+ and is installed via Composer:

composer require oihana/php-routes

🧾 License

This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).

πŸ‘€ About the Author

πŸ”— Related packages

πŸ”— Project on GitHub

View the full source code and contribute on GitHub: github.com/BcommeBois/oihana-php-routes.

Search results