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:
- π¬π§ English documentation
- π«π· Documentation franΓ§aise
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
- Name: Marc ALCARAZ (aka eKameleon)
- Website: www.ooop.fr
- Email: marc@ooop.fr
π Related packages
- oihana/php-core β core helpers and utilities.
- oihana/php-traits β reusable, composable object traits.
- oihana/php-logging β PSR-3 logging building blocks.
- oihana/php-schema β Schema.org value objects and resolvers.
- oihana/php-signals β lightweight signal/slot events.
π Project on GitHub
View the full source code and contribute on GitHub: github.com/BcommeBois/oihana-php-models.