PHPackages                             emarref/spec - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. emarref/spec

ActiveLibrary

emarref/spec
============

Implementation of the Specification pattern.

v1.0.0(5y ago)04MITPHPCI failing

Since Jul 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/emarref/spec)[ Packagist](https://packagist.org/packages/emarref/spec)[ RSS](/packages/emarref-spec/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Specification
=============

[](#specification)

This library implements the [Specification Pattern](https://en.wikipedia.org/wiki/Specification_pattern) for use in any project.

Create composable logic by encapsulating decisions in a class that adheres to the SpecificationInterface.

Install
-------

[](#install)

```
$ composer require emarref/spec
```

Usage
-----

[](#usage)

Given the following specifications:

```
