Download the PHP package danfekete/spec without Composer
On this page you can find all versions of the php package danfekete/spec. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package spec
Spec
Spec is a PHP implementation of the Specification pattern which can be used for building simple or complex business rules.
In computer programming, the specification pattern is a particular software design pattern, whereby business rules can be recombined by chaining the business rules together using boolean logic. The pattern is frequently used in the context of domain-driven design.
The library uses the incredible expression-language component from Symfony to provide the DSL for expressions.
Installation
$ composer require danfekete/spec
Usage
1. Simple expression
2. Boolean chaining
TODO
- Cache parsed code permanently
Array builder, builds specification from arraysJSON builder
License
MIT, see LICENSE