Download the PHP package petrknap/eloquent without Composer
On this page you can find all versions of the php package petrknap/eloquent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download petrknap/eloquent
More information about petrknap/eloquent
Files in petrknap/eloquent
Package eloquent
Short Description A collection of enhancements and helper classes for Eloquent
License LGPL-3.0-or-later
Homepage https://github.com/petrknap/php-eloquent
Informations about the package eloquent
A collection of enhancements and helper classes for Eloquent
- Casts
- Optionals
- Repositories
Casts
Casts define how values move between the database and your domain, ensuring each field is automatically transformed into the model’s native type.
Optionals
Optionals let you delegate the handling of missing models to another layer of your application. Instead of forcing a decision at the point of retrieval, they give you a structured way to express uncertainty and decide later how absence should be interpreted.
Repositories
Repositories provide a clean, expressive interface for working with your data layer. They encapsulate all persistence logic—queries, inserts, updates, and deletes—so the rest of your application can interact with models through a consistent, intention‑revealing API. By centralizing data access, repositories help keep your domain logic focused and testable.
Run composer require petrknap/eloquent to install it.
You can support this project via donation.
The project is licensed under the terms of the LGPL-3.0-or-later.
All versions of eloquent with dependencies
illuminate/contracts Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
petrknap/optional Version ^3.2
petrknap/zoned-datetime-persistence Version ^0.3.4