Download the PHP package albertoarena/laravel-event-sourcing-generator without Composer
On this page you can find all versions of the php package albertoarena/laravel-event-sourcing-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download albertoarena/laravel-event-sourcing-generator
More information about albertoarena/laravel-event-sourcing-generator
Files in albertoarena/laravel-event-sourcing-generator
Package laravel-event-sourcing-generator
Short Description Laravel event sourcing domain generator
License MIT
Informations about the package laravel-event-sourcing-generator
Laravel event sourcing generator
Laravel event sourcing generator adds a new Artisan command that can generate a full domain directory structure for Spatie event sourcing.
Table of Contents
- Changelog
- Contributing
- Installation
- Compatibility
- Install
- Usage
- Show help
- Basic usage
- Domain and namespace
- Advanced usage
- Set primary key
- Generate PHPUnit tests
- Generate aggregates
- Generate reactors
- Generate failed events
- Generate notifications
- Specify indentation
- Specify the path of root folder
- Limitations and future enhancements
Changelog
⬆️ Go to TOC
Please see CHANGELOG for more information what has changed recently.
Contributing
⬆️ Go to TOC
Feel free to fork, improve and create a pull request.
Please see CONTRIBUTING for details.
Installation
⬆️ Go to TOC
Compatibility
What | Version |
---|---|
PHP | 8.2 / 8.3 |
Laravel | 10.x / 11.x (*) |
Spatie's event sourcing | 7.x |
(*) Package has been tested in Laravel 10, even it is not officially released for that version.
Install
Usage
⬆️ Go to TOC
Show help
Basic usage
⬆️ Go to TOC
Documentation about basic usage
Generate a model with same name of the domain
Generate a model with different domain
Read documentation with examples
Generate a model with different domain and namespace
Read documentation with examples
Generate a model from existing migration
Read documentation with examples
Generate a model from existing migration using pattern and exclude specific one
Read documentation with examples
Generate a model from existing migration using pattern and exclude using regex
Read documentation with examples
Generate a model from existing migration with PHPUnit tests
Generate a model from existing migration with failed events and database / mail / Slack notifications
Domain and namespace
⬆️ Go to TOC
Read documentation about directory structure
Specify the name of the domain
Read documentation with examples
Specify the namespace
Read documentation with examples
Advanced usage
⬆️ Go to TOC
Set primary key
Read documentation with examples
Default primary key is uuid
. That will work with Aggregate class.
It is possible to use id
as primary key:
When importing migrations, primary key will be automatically loaded from file.
Generate PHPUnit tests
Read documentation with examples
Generate aggregates
Read documentation with examples
This is available only for models using uuid
as primary key.
Generate reactors
Read documentation with examples
Generate failed events
Read documentation with examples
Generate notifications
Read documentation with examples
Specify indentation
Read documentation with examples
Specify the path of root folder
Read documentation with examples
Limitations and future enhancements
⬆️ Go to TOC
Blueprint column types
Read documentation
All versions of laravel-event-sourcing-generator with dependencies
aldemeery/onion Version ^1.0
illuminate/contracts Version *
illuminate/support Version *
nikic/php-parser Version ^5.1
spatie/laravel-event-sourcing Version ^7.9