PHPackages                             remi-san/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. remi-san/specification

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

remi-san/specification
======================

Specification pattern classes

v1.1.2(10y ago)269.9k↓56.3%MITPHPPHP &gt;=5.3

Since Feb 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/remi-san/specification)[ Packagist](https://packagist.org/packages/remi-san/specification)[ RSS](/packages/remi-san-specification/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (5)Used By (0)

specification
=============

[](#specification)

[![Author](https://camo.githubusercontent.com/4488dd05eac93ae677fc802ca3f7ecdf019ffac5386384282044a33dd0858654/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d4052656d6953616e2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/RemiSan)[![Build Status](https://camo.githubusercontent.com/0cac073ee44e10fd5a8f7a41ab0bc8f8958ddf388617d633e17e62e0c77b3ab5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72656d692d73616e2f73706563696669636174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/remi-san/specification)[![Quality Score](https://camo.githubusercontent.com/418f9542661da81c1f022531e209fd3d9474e22e47c7dbd1179542c7e44b854e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72656d692d73616e2f73706563696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/remi-san/specification)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/f5d64774e7456b6c65757a27ad1d6f3464c379411108ec600b660052721336b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72656d692d73616e2f73706563696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/remi-san/specification)[![Coverage Status](https://camo.githubusercontent.com/62ef1dd950836d84c033072964150127029a232ffe392b1fb024c00b5999982b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72656d692d73616e2f73706563696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/remi-san/specification/code-structure)[![SensioLabsInsight](https://camo.githubusercontent.com/f55e7bee6ab74813f892550ed174175a376f4993969c9b25dad9c81c4a493258/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33316330363136362d383335392d343565312d393032342d3665653530393937656364372f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/31c06166-8359-45e1-9024-6ee50997ecd7)

A lib to ease the use the **specification pattern**.

Your specification classes can extend the `AbstractSpecification` class which already implement the following methods from the `Specification` interface:

- `andSatisfies`
- `orSatisfies`
- `not`

You'll have to implement the `isSatisfiedBy` method to add the domain logic.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

4

Last Release

3765d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9999746240ba052017622ecdce5ac44e6a43db5f38084ff7644691207925c043?d=identicon)[remi-san](/maintainers/remi-san)

---

Top Contributors

[![remi-san](https://avatars.githubusercontent.com/u/5213540?v=4)](https://github.com/remi-san "remi-san (7 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/remi-san-specification/health.svg)

```
[![Health](https://phpackages.com/badges/remi-san-specification/health.svg)](https://phpackages.com/packages/remi-san-specification)
```

###  Alternatives

[realrashid/cart

Meet Cart — your ultimate solution for seamless shopping cart functionality in Laravel applications. Cart simplifies the complexities of shopping cart operations, from product additions to total calculations, ensuring a frictionless user experience.

1104.1k](/packages/realrashid-cart)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
