Download the PHP package oihana/php-models without Composer
On this page you can find all versions of the php package oihana/php-models. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oihana/php-models
More information about oihana/php-models
Files in oihana/php-models
Package php-models
Short Description The Oihana PHP Models library
License MPL-2.0
Homepage https://github.com/BcommeBois/oihana-php-models
Informations about the package php-models
Oihana PHP - Models

A document model layer for PHP 8.4+: schema-aware models with composable CRUD, PDO and PSR-16 cache integration.
📚 Documentation
User guides (FR + EN), with narrative explanations and examples:
| 🇬🇧 English documentation | 🇫🇷 Documentation française |
|---|---|
| Getting started, models, CRUD traits, PDO, cache, signals. | Démarrage, modèles, traits CRUD, PDO, cache, signaux. |
Auto-generated API reference (phpDocumentor):
👉 https://bcommebois.github.io/oihana-php-models
🚀 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.
- 🧪 Full unit-test coverage ensuring reliability and maintainability.
💡 Designed to be lightweight, testable, and compatible with any PHP 8.4+ project.
📦 Installation
Requires PHP 8.4+
Install via Composer:
✅ Tests & coverage
Run the full unit-test suite (PHPUnit, strict mode):
Run a single test case:
Measure coverage (requires Xdebug or PCOV):
The suite runs in strict mode and targets 100% line coverage.
🧾 License
This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).
👤 About the author
- Author : Marc ALCARAZ (aka eKameleon)
- Mail : [email protected]
- Website : http://www.ooop.fr
🛠️ Generate the Documentation
We use phpDocumentor to generate the documentation into the ./docs folder.
Usage
Run the command :
🔗 Related packages
- oihana/php-core – core helpers and utilities used by this library.
- 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.
All versions of php-models with dependencies
oihana/php-core Version dev-main
oihana/php-enums Version dev-main
oihana/php-exceptions Version dev-main
oihana/php-files Version dev-main
oihana/php-logging Version dev-main
oihana/php-reflect Version dev-main
oihana/php-schema Version dev-main
oihana/php-signals Version dev-main
oihana/php-traits Version dev-main
php-di/php-di Version ^7.0
matthiasmullie/scrapbook Version ^1.5
psr/container Version ^2.0
psr/log Version ^3.0
psr/simple-cache Version ^3.0