PHPackages                             open-solid/cqs - 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. open-solid/cqs

ActiveLibrary

open-solid/cqs
==============

Contract for Command Query Separation pattern

v1.0.4(1y ago)1841MITPHPPHP &gt;=8.2

Since Apr 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/open-solid/cqs)[ Packagist](https://packagist.org/packages/open-solid/cqs)[ RSS](/packages/open-solid-cqs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (6)Used By (1)

Command-Query Separation implementation
=======================================

[](#command-query-separation-implementation)

Command-Query Separation (CQS) is a principle in software design that states a function should either be a command that performs an action (modifies state) or a query that returns data, but not both. This separation ensures clarity and predictability in code. Commands alter the state of the system, while queries provide information without causing side effects.

See more

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

[](#installation)

```
composer require open-solid/cqs
```

License
-------

[](#license)

This software is published under the [MIT License](LICENSE)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Every ~28 days

Total

5

Last Release

634d ago

### Community

Maintainers

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

---

Top Contributors

[![yceruto](https://avatars.githubusercontent.com/u/2028198?v=4)](https://github.com/yceruto "yceruto (29 commits)")

---

Tags

command-query-separationcqs

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/open-solid-cqs/health.svg)

```
[![Health](https://phpackages.com/badges/open-solid-cqs/health.svg)](https://phpackages.com/packages/open-solid-cqs)
```

PHPackages © 2026

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