2017 © Pedro Peláez
 

library specification

PHP Specification library.

image

arete/specification

PHP Specification library.

  • Wednesday, October 21, 2015
  • by aretecode
  • Repository
  • 1 Watchers
  • 6 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Arete\Specification

Build Status HHVM Status Author Latest Unstable Version License Codacy Badge, (*1)

Specification library in PHP., (*2)

Eric Evans & Martin Fowlers paper on Specifications, (*3)

Example

See my post on refactoring, (*4)

A post detailing the usage in more detail will be available soon., (*5)

Installation

It can be installed from Packagist using Composer., (*6)

In your project root just run:, (*7)

$ composer require arete/specification, (*8)

Make sure that you’ve set up your project to autoload Composer-installed packages., (*9)

Running tests

Run via the command line by going to arete/specification directory and running phpunit, (*10)

@TODO

  • [x] ::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!), (*11)

The Versions

21/10 2015

dev-master

9999999-dev

PHP Specification library.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar aretecode

specification ddd satisfy satisfied