monii / specification
Specification
Installs: 1 272
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^5.5|~7.0
Requires (Dev)
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2016-11-17 11:23:33 UTC
README
An implementation of the Specification pattern.
Requirements
- PHP 5.5+
- A renderer if you need to apply the Specification pattern to persisted data
Installation
$> composer require monii/specification
Until a stable version has been released or if a development version is preferred, use:
$> composer require monii/specification:@dev
Rendering Implementations
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.
License
MIT, see LICENSE.
Community
Want to get involved? Here are a few ways:
- Find us in the #monii IRC channel on irc.freenode.org.
- Mention @moniidev on Twitter.