arete / specification
PHP Specification library.
dev-master / 0.3.4.x-dev
2015-10-21 19:27 UTC
Requires
- arete/collection-pipeline: dev-master
- arete/support: dev-master
Requires (Dev)
- phpunit/phpunit: 5.1.*
This package is not auto-updated.
Last update: 2024-11-13 19:20:07 UTC
README
Specification library in PHP.
Eric Evans & Martin Fowlers paper on Specifications
Example
A post detailing the usage in more detail will be available soon.
Installation
It can be installed from Packagist using Composer.
In your project root just run:
$ composer require arete/specification
Make sure that you’ve set up your project to autoload Composer-installed packages.
Running tests
Run via the command line by going to arete/specification
directory and running phpunit
@TODO
- ::remainderUnsatisfiedBy()
- ::isGeneralizationOf()
- ::isSpecializationOf()
- ::asQuery() for use with db, whether it uses argument, or sep methods
- abstract part of the Collection Pipeline matching into default/premades
P.S.
(I have had this written since I read the DDD books, I updated it a little and just found an old one by @mathiasverraes which was interesting!)