Oihana PHP

Oihana PHP Models

A document model layer for PHP 8.4+: schema-aware models with composable CRUD, PDO and PSR-16 cache integration.

πŸ“š Documentation

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

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

πŸš€ Features

  • πŸ“„ Document models with composable CRUD traits (list, get, count, insert, update, delete).
  • πŸ—„οΈ PDO-backed models for relational sources.
  • 🧬 Schema.org-aware models built on org\schema\Thing.
  • ⚑ PSR-16 cache integration (Scrapbook) for collection caching.
  • πŸ“‘ Signals & notices for model lifecycle events.
  • πŸ§ͺ 100% unit-test line coverage.

πŸ“¦ Installation

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

composer require oihana/php-models

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

Search results