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

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

alsar/specification
===================

Specification pattern implemented in PHP.

2.0.0(4y ago)223.9kMITPHPPHP &gt;=7.4CI failing

Since Jan 26Pushed 4y ago2 watchersCompare

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

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

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

[](#specification)

[Specification pattern](http://en.wikipedia.org/wiki/Specification_pattern) implemented in PHP.

[![Build Status](https://camo.githubusercontent.com/3b02e34327a1ddaf2162d821f4db5af416faa725bafc552d4eabd707fd1a8f05/68747470733a2f2f7472617669732d63692e6f72672f616c7361722f73706563696669636174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alsar/specification)[![Latest Stable Version](https://camo.githubusercontent.com/cfa8b7c7071cc6b7cdb7cc28bb6b553e67bc97df6c7ba6b09ad1422fc80f6ddc/68747470733a2f2f706f7365722e707567782e6f72672f616c7361722f73706563696669636174696f6e2f762f737461626c65)](https://packagist.org/packages/alsar/specification)[![Total Downloads](https://camo.githubusercontent.com/9e3451ea6897444ac2ddc9a96570796bcd47cc52942dcd345f43a5a76d921edf/68747470733a2f2f706f7365722e707567782e6f72672f616c7361722f73706563696669636174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/alsar/specification)[![Latest Unstable Version](https://camo.githubusercontent.com/43f12696532c31c6563aa0f7469bd3d5359f158ba6a94a38eff2963e2d2650ea/68747470733a2f2f706f7365722e707567782e6f72672f616c7361722f73706563696669636174696f6e2f762f756e737461626c65)](https://packagist.org/packages/alsar/specification)

Requirements
------------

[](#requirements)

- PHP 7.0+

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

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 ~890 days

Total

4

Last Release

1819d ago

Major Versions

v0.1.1 → v1.0.02017-01-10

v1.0.0 → 2.0.02021-05-21

PHP version history (3 changes)v0.1.0PHP &gt;=5.5

v1.0.0PHP &gt;=7.0

2.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e1373d3ece173731b9d3c84315ad4a2dc1965a43f3e87bb9efb2088d13f01d8?d=identicon)[alsar](/maintainers/alsar)

---

Top Contributors

[![alsar](https://avatars.githubusercontent.com/u/1380676?v=4)](https://github.com/alsar "alsar (9 commits)")

---

Tags

specificationspecification pattern

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[rikbruil/specification

A PHP implementation of the Specification-pattern

18284.8k1](/packages/rikbruil-specification)[chalcedonyt/laravel-specification

Implementation of the specification pattern

128.6k](/packages/chalcedonyt-laravel-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)

PHPackages © 2026

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