onxit / stuberator
Generate a few types of architectures elements by Command Generators and stubs
Requires
- php: ^8.0
- illuminate/console: ^10.0|^11.0
- illuminate/database: ^10.0|^11.0
- illuminate/http: ^10.0|^11.0
- illuminate/routing: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- spatie/laravel-ray: ^1.35
This package is not auto-updated.
Last update: 2025-06-08 00:04:59 UTC
README
Stuberator is a Laravel package designed to simplify the creation of architectural elements through command generators and stubs. It currently supports the generation of Actions, Services, and Enums. Future releases will include support for Domain-Driven Design (DDD) modules.
📦 Installation
Add the package to your Laravel project using Composer:
composer require onxit/stuberator
🚀 Usage
Stuberator provides the following Artisan commands to generate files:
Generate an Action
Run the following command to create a new Action class:
php artisan make:action <ActionName>
The generated file will be placed in the App\Actions namespace by default.
Generate a Service
Run the following command to create a new Service class:
php artisan make:service <ServiceName>
The generated file will be placed in the App\Services namespace by default.
Generate an Enum
Run the following command to create a new Enum class:
php artisan make:enum <EnumName>
The generated file will be placed in the App\Enums namespace by default.
🗺 Roadmap
Support for Domain-Driven Design (DDD): Future updates will include commands and scaffolding for DDD modules such as Aggregates, Value Objects, Repositories, and more. Additional stub-based generators.
🤝 Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request to improve this package.
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes and submit a pull request.