Download the PHP package lauchoit/laravel-hex-mod without Composer
On this page you can find all versions of the php package lauchoit/laravel-hex-mod. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lauchoit/laravel-hex-mod
More information about lauchoit/laravel-hex-mod
Files in lauchoit/laravel-hex-mod
Package laravel-hex-mod
Short Description Modular scaffolding generator for Laravel (Hexagonal Architecture)
License MIT
Informations about the package laravel-hex-mod
Laravel Hex Mod
โ๏ธ A modular scaffolding generator for Laravel based on Hexagonal Architecture (Ports & Adapters).
๐ฆ Installation
You can install the package via Composer:
๐ What It Does
This package generates a modular Laravel structure based on Hexagonal Architecture, automating the creation of:
- โ Domain Entities & EntitySource (Model of Laravel)
- โ Application UseCases
- โ Interface Adapters (Controllers, Repositories, Requests, Resources)
- โ Eloquent Models, Migrations, and Factories
- โ Automatic Unit & Feature Tests
- โ Route injection & AppServiceProvider bindings
- โ Shared folder
๐ What It Does
This package scaffolds a complete Laravel module following Hexagonal Architecture, including:
๐งฑ Usage
You can run the command in different ways depending on your needs:
Basic Usage
This command will generate a complete module for Client
with default fields attribute1 and attribute2
all string.
With fields Usage
This command will generate a complete module for Client
with specific field, if your not provider type, the system makes field with a string type.
With fields and type Usage
The type available are: string
, integer
, float
, boolean
, date
, datetime
, json
, longText
.
This command will generate a complete module for Client
with specific field and type, if your not provider types, the system makes field with a string type.
Without Tests
If you provide the --skip-test
option, the generator will skip creating tests for the module.
Route
The generator automatically creates a route file for the module, which you can find in src/Client/Infrastructure/Routes/ClientRoutes.php
.
- You can customize the routes as needed, and they will be automatically loaded by the application.
- This route file is register automatically in the
bootstrap/app.php
of your Laravel application. - You can see the routes in the
php artisan route:list
command.
๐งช Test Coverage
Note: you need to have the phpunit
package installed and configured in your Laravel project to run the tests. You need run migratrions before runnig the tests.
The generator produces unit and feature tests for:
- Entity classes
- NotFound exceptions
- UsesCases feature scenarios
Run your tests:
๐ Made with โค๏ธ by LauchoIT
Feel free to contribute or suggest features via GitHub issues or PRs.
๐ License
This package is open-sourced software licensed under the MIT license.