An implementation of the Specification pattern.
- PHP 5.5+
- A renderer if you need to apply the Specification pattern to persisted data
$> composer require monii/specification
Until a stable version has been released or if a development version is preferred, use:
$> composer require monii/specification:@dev
By itself, the specification package is able to check individual existing objects to see if a specification is satisfied by the specification. In order to use a specification to query a set of objects not yet in memory you can render a specification into a query.
MIT, see LICENSE.
Want to get involved? Here are a few ways:
- Find us in the #monii IRC channel on irc.freenode.org.
- Mention @moniidev on Twitter.