Download the PHP package anfischer/specification without Composer
On this page you can find all versions of the php package anfischer/specification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anfischer/specification
More information about anfischer/specification
Files in anfischer/specification
Package specification
Short Description A package containing base classes to be used as a starting ground for implementing the Specification pattern in PHP.
License MIT
Homepage https://github.com/anfischer/specification
Informations about the package specification
PHP Specification pattern
A package containing base classes to be used as a starting ground for implementation of the Specification pattern in PHP (for more information see https://martinfowler.com/apsupp/spec.pdf).
This package includes the typical set of and(), or() and not() specifications as well as specifications for allOf(), anyOf() and noneOf().
Install
Via Composer
Usage
General usage of this package can be inferred from its test cases.
However a very basic and simplified example of usage with a single specification to (not) satisfy might look like this:
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Andreas Fischer
- All Contributors
License
The MIT License (MIT). Please see License File for more information.