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

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

dobrosite/specification
=======================

Specification pattern for PHP

3.0.0(4y ago)011.0k1MITPHPPHP ^7.4|^8.0CI failing

Since May 6Pushed 4y ago2 watchersCompare

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

READMEChangelog (8)Dependencies (4)Versions (12)Used By (1)

Шаблон «Спецификация» / Specification pattern
=============================================

[](#шаблон-спецификация--specification-pattern)

[![Лицензия MIT](https://camo.githubusercontent.com/c6b0d06c13b9111664eb32be5a0a2368b6567814c6ab2134812bfdc961c6403f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646f62726f736974652f73706563696669636174696f6e2e737667)](https://camo.githubusercontent.com/c6b0d06c13b9111664eb32be5a0a2368b6567814c6ab2134812bfdc961c6403f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646f62726f736974652f73706563696669636174696f6e2e737667)[![Сборка](https://camo.githubusercontent.com/18cf33fb84df2b0c2bd94104acfe34a739a8f3c37e9fdcd4dec06b6ed0c51794/68747470733a2f2f6170702e7472617669732d63692e636f6d2f646f62726f736974652f73706563696669636174696f6e2e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/dobrosite/specification)[![GitHub release](https://camo.githubusercontent.com/a0a319fe8c76ae2e23a4821ae518d09424aa8d6b00c767a2dfdda53e2cda4fc3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f646f62726f736974652f73706563696669636174696f6e2e737667)](https://camo.githubusercontent.com/a0a319fe8c76ae2e23a4821ae518d09424aa8d6b00c767a2dfdda53e2cda4fc3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f646f62726f736974652f73706563696669636174696f6e2e737667)

---

- [Документация](docs/ru/index.md)
- [Documentation](docs/en/index.md)

---

- [Doctrine](https://github.com/dobrosite/specification-doctrine)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% 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 ~88 days

Recently: every ~129 days

Total

11

Last Release

1687d ago

Major Versions

0.1.0 → 1.0.02019-05-22

1.x-dev → 2.0.0-alpha2019-07-08

2.4.1 → 3.0.02021-10-01

PHP version history (5 changes)0.1.0PHP ^5.6|^7.0

2.0.0-alphaPHP ^7.1

2.1.0PHP ^7.2

2.4.1PHP ^7.2|^8.0

3.0.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f59cdbde66f36f1f86dad783d2f79e64c17ffdcd0771f73b96b7d9d7ee37b364?d=identicon)[Mekras](/maintainers/Mekras)

---

Top Contributors

[![mekras](https://avatars.githubusercontent.com/u/192067?v=4)](https://github.com/mekras "mekras (40 commits)")[![RedsCoyote](https://avatars.githubusercontent.com/u/17336602?v=4)](https://github.com/RedsCoyote "RedsCoyote (1 commits)")

---

Tags

specificationspec

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)[bossa/phpspec2-expect

Helper that decorates any SUS with a phpspec lazy object wrapper

741.8M87](/packages/bossa-phpspec2-expect)[rikbruil/specification

A PHP implementation of the Specification-pattern

18284.8k1](/packages/rikbruil-specification)[maximecolin/satisfaction

A PHP implementation of the specification pattern for DDD

3630.2k](/packages/maximecolin-satisfaction)[kphoen/rulerz-spec-builder

Specification builder for RulerZ

1149.5k](/packages/kphoen-rulerz-spec-builder)[chalcedonyt/laravel-specification

Implementation of the specification pattern

128.6k](/packages/chalcedonyt-laravel-specification)

PHPackages © 2026

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