brightnucleus / collection
Collection class with implementations for Doctrine & WP elements
dev-master
2019-08-24 08:20 UTC
Requires
- brightnucleus/exceptions: >=0.2.0
- doctrine/collections: *
Requires (Dev)
- phpunit/phpunit: ^6
This package is auto-updated.
Last update: 2024-10-24 20:09:19 UTC
README
Provide an abstract to work with WordPress entities through collections.
Benefits:
- Any collection of elements has basic manipulation that doesn't require knowledge about the type.
- All collections can be filtered using
Criteria
, which can work before just as well as after hydration. If the requirements are met, the actual query is only done when you access an individual element inside of the collection. - ...
This is still a work-in-progress.