PHPackages                             makinacorpus/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. makinacorpus/specification

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

makinacorpus/specification
==========================

Simple specification pattern implementation.

0.1.0(4y ago)15GPL-2.0-or-laterPHPPHP &gt;= 8.0

Since Mar 23Pushed 4y ago2 watchersCompare

[ Source](https://github.com/makinacorpus/php-specification)[ Packagist](https://packagist.org/packages/makinacorpus/specification)[ RSS](/packages/makinacorpus-specification/feed)WikiDiscussions master Synced 1mo ago

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

Specification pattern
=====================

[](#specification-pattern)

This is a very simple and extensible specification pattern implementation.

For its core API, it is basically a copy-paste of code found in [https://en.wikipedia.org/wiki/Specification\_pattern](https://en.wikipedia.org/wiki/Specification_pattern) and contains only the bare minimum code to make it functionnal.

It is intended to be used as a contract, for a DSL in a domain driven designed application. In business code, one should never use this library classes directly, but extend it for implementing its own specification.

You can also copy-paste this library content as well in the shared kernel of your application if you wish have no dependencies on the oustide world, code is voluntarily kept naive and small.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1513d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/69252826f3a70a19fc5dcefb7ef9d26d465bb300245641abb4dd89d0ec391a66?d=identicon)[pounard](/maintainers/pounard)

![](https://www.gravatar.com/avatar/d21b98752b406528da88850922b1061f39bf72eb2126b413d5c12e275811a40b?d=identicon)[Makina Corpus](/maintainers/Makina%20Corpus)

---

Top Contributors

[![pounard](https://avatars.githubusercontent.com/u/341855?v=4)](https://github.com/pounard "pounard (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

PHPackages © 2026

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