Oihana PHP

Oihana PHP Controllers

Composable HTTP controller building blocks for PHP 8.4+, built on Slim and Twig.

πŸ“š Documentation

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

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

πŸš€ Features

  • πŸŽ›οΈ A composable Controller base and focused traits β€” params, pagination, languages, routing, status, Twig, JSON/CBOR.
  • 🧩 Typed request-parameter extraction & strategies β€” ParamsTrait, ParamsStrategyTrait, the getParam*() helpers.
  • πŸ“₯ File responses β€” download, streaming, HTTP range, ETag & 304 Not Modified, content headers.
  • πŸ—œοΈ Archives, uploads & encryption β€” zip/tar, file upload and OpenSSL file encryption.
  • πŸ›‘οΈ CSRF, HTTP cache and language negotiation on top of Slim & Twig.
  • πŸ§ͺ 100% unit-test line coverage.

πŸ“¦ Installation

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

composer require oihana/php-controllers

🧾 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-controllers.

Search results