Download the PHP package evotic/make-extended without Composer
On this page you can find all versions of the php package evotic/make-extended. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download evotic/make-extended
More information about evotic/make-extended
Files in evotic/make-extended
Package make-extended
Short Description An extension to Laravel artisan make commands
License MIT
Informations about the package make-extended
Laravel Make Extended
The Laravel Make Extended package provides additional make:
commands that simplify common development tasks in Laravel, such as creating actions, DTOs (Data Transfer Objects), repositories, services, and more. This package aims to fill gaps in Laravel's built-in Artisan commands, offering enhanced tools to streamline development.
Developed to boost productivity and maintain code organization, these commands provide structure and separation of concerns for complex Laravel applications.
Key Features
- Enhanced
make:
commands: Adds useful Artisan commands likemake:action
,make:dto
,make:repository
, andmake:service
. - Separation of concerns: Promotes clean architecture patterns like CQRS and DDD (Domain-Driven Design) by offering DTOs, actions, and repositories.
- Extendable: Easily customizable stubs for generated files. See the Customizing Stubs section for more information.
- Seamless integration: Works seamlessly with existing Laravel projects from version 9.x onwards.
Installation
To install the Laravel Make Extended package, follow these steps:
-
Install via Composer:
Run the following command to install the package via Composer:
-
Publish Configuration (Optional):
If you want to customize any aspect of the package, you can publish the configuration files:
Usage
Once the package is installed, you can start using the new make:
commands in your Laravel project.
For example, to create a new action class, simply run:
php artisan make:action YourAction
Each generated file will be placed in the appropriate folder, following Laravel’s naming conventions.
Available Commands
This package provides the following make:
commands:
make:action
Creates a single-action class, which can be used to organize your business logic and simplify controllers. Typically used in a CQRS pattern.
Example:
php artisan make:action ProcessOrderAction
This generates the following file:
Use Case:
Single-action classes can be useful for organizing logic thatbash php artisan vendor:publish --tag=make-extended-stubs
This will publish the stubs to the `resources/stubs/make-extended` directory in your Laravel application. You can then modify these stubs as needed, and the package will use the customized stubs instead of the default ones.
### Example
To customize the `Service.stub`, you would find the file at: `resources/stubs/make-extended/Service.stub`.
---
## Contributing
If you'd like to contribute to this project, feel free to submit pull requests or open issues on GitHub. Contributions, suggestions, and improvements are always welcome!
## Important Links
- evotic Website: [evotic.io](https://evotic.io)
- Laravel Documentation: [Laravel Docs](https://laravel.com/docs)
- CQRS Pattern: [CQRS Documentation](https://martinfowler.com/bliki/CQRS.html)
- Data Transfer Objects (DTOs): [DTO Pattern](https://en.wikipedia.org/wiki/Data_transfer_object)
## License
This package is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for more information.
All versions of make-extended with dependencies
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/console Version ^9.0|^10.0|^11.0