kalel1500 / laravel-hexagonal-and-ddd-architecture-utilities
Utilidades para desarrollar en arquitectura hexagonal y DDD en laravel
Package info
pkg:composer/kalel1500/laravel-hexagonal-and-ddd-architecture-utilities
Requires
- php: ^8.2
- ext-json: *
- laravel/framework: ^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^10.5
- phpunit/phpunit: ^11.5
- dev-master
- v0.48.0-beta.0
- v0.47.0-beta.1
- v0.47.0-beta.0
- v0.46.0-beta.0
- v0.45.1-beta.0
- v0.45.0-beta.0
- v0.44.2-beta.1
- v0.44.2-beta.0
- v0.44.1-beta.0
- v0.44.0-beta.0
- v0.43.2-beta.0
- v0.43.1-beta.0
- v0.43.0-beta.0
- v0.41.2-beta.0
- v0.41.1-beta.0
- v0.41.0-beta.1
- v0.41.0-beta.0
- v0.40.0-beta.0
- v0.39.0-beta.0
- v0.38.2-beta.1
- v0.38.2-beta.0
- v0.38.1-beta.0
- v0.38.0-beta.0
- v0.37.1-beta.1
- v0.37.1-beta.0
- v0.37.0-beta.0
- v0.36.0-beta.0
- v0.35.1-beta.0
- v0.35.0-beta.0
- v0.34.0-beta.1
- v0.34.0-beta.0
- v0.33.1-beta.0
- v0.33.0-beta.0
- v0.32.1-beta.1
- v0.32.1-beta.0
- v0.32.0-beta.0
- v0.31.0-beta.0
- v0.30.0-beta.0
- v0.29.2-beta.1
- v0.29.2-beta.0
- v0.29.1-beta.0
- v0.29.0-beta.0
- v0.28.0-beta.0
- v0.27.4-beta.1
- v0.27.4-beta.0
- v0.27.3-beta.0
- v0.27.2-beta.0
- v0.27.1-beta.0
- v0.27.0-beta.0
- v0.26.0-beta.0
- v0.25.1-beta.0
- v0.25.0-beta.0
- v0.24.0-beta.0
- v0.23.1-beta.0
- v0.23.0-beta.0
- v0.22.0-beta.0
- v0.21.0-beta.0
- v0.20.0-beta.0
- v0.19.0-beta.1
- v0.19.0-beta.0
- v0.18.1-beta.0
- v0.18.0-beta.0
- v0.17.1-beta.0
- v0.17.0-beta.0
- v0.16.0-beta.0
- v0.15.0-beta.0
- v0.14.1-beta.1
- v0.14.1-beta.0
- v0.14.0-beta.0
- v0.13.0-beta.3
- v0.13.0-beta.2
- v0.13.0-beta.1
- v0.12.0-beta.1
- v0.11.0-beta.2
- v0.11.0-beta.1
- v0.10.0-beta.2
- v0.10.0-beta.1
- v0.9.0-beta.3
- v0.9.0-beta.2
- v0.9.0-beta.1
- v0.8.0-beta.1
- v0.7.0-beta.1
- v0.6.0-beta.1
- v0.5.0-beta.3
- v0.5.0-beta.2
- v0.5.0-beta.1
- v0.4.0-beta.2
- v0.4.0-beta.1
- v0.3.0-beta.1
- v0.2.0-beta.4
- v0.2.0-beta.3
- v0.2.0-beta.2
- v0.2.0-beta.1
- v0.1.0-beta.2
- v0.1.0-beta.1
- dev-develop
- dev-integrarRestApi
This package is auto-updated.
Last update: 2026-03-18 19:49:54 UTC
README
✨ Features
- Utilities for developing in hexagonal architecture and DDD in Laravel.
Quick start
composer require kalel1500/kalion:@beta
Publish files
To publish all the files in the package you can use the following command:
php artisan vendor:publish --provider="Thehouseofel\Kalion\KalionServiceProvider"
Or else you have the following to publish the files independently
php artisan vendor:publish --tag="kalion-migrations" php artisan vendor:publish --tag="kalion-views" php artisan vendor:publish --tag="kalion-view-layout" php artisan vendor:publish --tag="kalion-config" php artisan vendor:publish --tag="kalion-config-user" php artisan vendor:publish --tag="kalion-config-links" php artisan vendor:publish --tag="kalion-lang"
Start command
After installing the package, to start a project you can run the following command.
php artisan kalion:start
This command will modify several project files to the recommended settings.
In addition, it will generate new files to add complete examples to the project with the following views:
- Home
- Posts
- Tags
Package configuration
Redirections
You can configure where the application will redirect in two cases:
- When searching for the default path
- After login (if no previous route is found)
There are two configurations for this (in config/kalion.php):
kalion.default_path(KALION_DEFAULT_PATH)kalion.auth.redirect_after_login(KALION_AUTH_REDIRECT_AFTER_LOGIN)
For more complex cases, you can use the configuration method:
use Thehouseofel\Kalion\Core\Infrastructure\Support\Config\KalionConfig; public function register(): void { KalionConfig::redirectTo( defaultPath: fn() => 'home', afterLogin: fn() => 'home', ); }
If both routes match, simply configure the default path.
License
Kalion is open-sourced software licensed under the GNU General Public License v3.0.
