https://github.com/open-solid/cqs
A Command-Query Separation implementation
https://github.com/open-solid/cqs
command-query-separation cqs
Last synced: 3 months ago
JSON representation
A Command-Query Separation implementation
- Host: GitHub
- URL: https://github.com/open-solid/cqs
- Owner: open-solid
- License: mit
- Created: 2023-10-21T13:05:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-27T13:26:16.000Z (10 months ago)
- Last Synced: 2025-06-29T17:48:20.530Z (3 months ago)
- Topics: command-query-separation, cqs
- Language: PHP
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 https://martinfowler.com/bliki/CommandQuerySeparation.html
## Installation
```bash
composer require open-solid/cqs
```## License
This software is published under the [MIT License](LICENSE)