Download the PHP package utilitarian-dev/utilitarian-laravel-toolkit without Composer
On this page you can find all versions of the php package utilitarian-dev/utilitarian-laravel-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download utilitarian-dev/utilitarian-laravel-toolkit
More information about utilitarian-dev/utilitarian-laravel-toolkit
Files in utilitarian-dev/utilitarian-laravel-toolkit
Package utilitarian-laravel-toolkit
Short Description Laravel implementation of Utilitarian Architecture: CQRS operations (Query, Command, Action), State Machine, and Data mapping utilities
License Apache-2.0
Homepage https://github.com/utilitarian-dev/utilitarian-laravel-toolkit
Informations about the package utilitarian-laravel-toolkit
Utilitarian Laravel Toolkit
Laravel implementation of Utilitarian Architecture — a pragmatic approach to organizing applications around business operations (use cases) rather than technical layers.
What's Included
- CQRS-style
Query,Command, andActionoperations with buses, middleware, and boot-time dependency injection - Eloquent-backed state storage and enum transition rules
- Lightweight DTO/data mapping helpers
- JSON, cache key, alert, reflection, route metadata, and debug utilities
Requirements
- PHP 8.3+
- Laravel 11+
Installation
The service provider is registered automatically via Laravel's package discovery.
Optionally, publish the configuration:
Core Components
Query
Read-only operations. Execute via QueryBus or dispatch().
Command
Write-only operations. Execute via CommandBus or dispatch().
Action
Business logic and orchestration. Execute via ActionBus or dispatch().
Dependency Injection
Pass business parameters to the constructor. Inject runtime dependencies in a public boot() method.
Middleware
Configure middleware in config/utilitarian.php:
Per-operation middleware:
Built-in middleware:
TransactionMiddleware— wraps execution in database transactionCachingMiddleware— caches query resultsValidationMiddleware— validates operation dataAuthorizationMiddleware— checks access permissions
Optional Utilities
The package also registers helpers and facades for JSON handling, cache key generation, alerts, reflection, route metadata, and debug output.
Debugging works with Laravel's built-in dump/logging drivers by default. LaraDumps support is optional:
State Machine
Manage state for Eloquent models with three levels of complexity:
Key-Value Storage
Enum States (no rules)
Enum States (with transition rules)
Database Setup:
Migrations are loaded automatically. Run:
Data Mapping
Lightweight DTOs with automatic property mapping:
Custom field mapping:
Testing
Code Quality
License
Licensed under the Apache License 2.0. See LICENSE for details.
Credits
Created by Vasilii Shvakin
All versions of utilitarian-laravel-toolkit with dependencies
composer-runtime-api Version ^2.0
illuminate/support Version ^11.25|^12.0|^13.0
illuminate/contracts Version ^11.25|^12.0|^13.0