PHPackages                             isu3ru/laravel-cqrs - 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. isu3ru/laravel-cqrs

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

isu3ru/laravel-cqrs
===================

A proper CQRS utility library for Laravel. Originally from serrexlabs/laravel-cqrs

1.1(11mo ago)01[1 PRs](https://github.com/isu3ru/laravel-cqrs/pulls)PHPPHP ^8.2

Since Dec 11Pushed 11mo ago1 watchersCompare

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

READMEChangelog (2)Dependencies (7)Versions (6)Used By (0)

Laravel CQRS
============

[](#laravel-cqrs)

CQRS utility library for Laravel. Code adopted form the outdated repository serrexlabs/laravel-cqrs.

Compatibility
-------------

[](#compatibility)

This library is compatible with **Laravel 12.x** and requires **PHP 8.2** or higher. Core Laravel dependencies have been updated to match Laravel 12.x requirements.

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

[](#installation)

add to composer.json file as a repository.

`"repositories": [ { "type": "vcs", "url": "https://github.com/isu3ru/laravel-cqrs" } ],`

then require in composer as `"isu3ru/laravel-cqrs": "dev-master"` (or the appropriate version tag for Laravel 12 compatibility). Then run `composer update` to install the project.

Testing
-------

[](#testing)

The package now includes automated tests managed by PHPUnit and Orchestra Testbench to ensure stability and easier development. You can run tests using the `composer test` script.

How to add into your Laravel Project
------------------------------------

[](#how-to-add-into-your-laravel-project)

Change your `app/Http/Controllers/Controller.php` to look like this.

```
