PHPackages                             larium/specification - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. larium/specification

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

larium/specification
====================

An implementation of Specification pattern

0.0.1(7y ago)17MITPHPPHP &gt;=7.2

Since Nov 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Larium/specification)[ Packagist](https://packagist.org/packages/larium/specification)[ RSS](/packages/larium-specification/feed)WikiDiscussions master Synced 3d ago

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

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b3e8473794e9f167ed8d509de8db0d8f33d1d823f78896342e6df3180be6742e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c617269756d2f73706563696669636174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Larium/specification/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/9d247f8398540d511dca40a66612f1dec030a97c27ce3137e0863229777554e5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c617269756d2f73706563696669636174696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Larium/specification/?branch=master) [![Build Status](https://camo.githubusercontent.com/3af7efd443591919d594e55246ea543bdc49a619f716b714f10e00db74e54c70/68747470733a2f2f7472617669732d63692e636f6d2f4c617269756d2f73706563696669636174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/Larium/specification)

An implementation of Specification pattern.
===========================================

[](#an-implementation-of-specification-pattern)

Installation
------------

[](#installation)

You can install this library using [Composer](https://getcomposer.org)

Information about how to install composer you can find in [official](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos) website.

### Command line

[](#command-line)

In root directory of your project run through a console:

```
$ composer require "larium/specification":"@stable"
```

### Composer.json

[](#composerjson)

Include require line in your `composer.json` file

```
{
    "require": {
        "larium/specification": "@stable"
    }
}
```

and run from console in the root directory of your project:

```
$ composer update
```

After this you must require autoload file from composer.

```
