thuraaung2493 / laravel-make-files-tools
A small cli tools to create DTO, Action and Service classes for Laravel project.
dev-main
2023-05-27 09:34 UTC
Requires
- php: ^8.1
- illuminate/console: ^9.22|^10.2
- illuminate/support: ^9.22|^10.2
- thecodingmachine/phpstan-safe-rule: ^1.2
Requires (Dev)
- laravel/pint: ^1.10
- nunomaduro/mock-final-classes: ^1.2
- orchestra/testbench: ^8.5.1
- pestphp/pest: ^1.23
- pestphp/pest-plugin-laravel: ^1.4
This package is auto-updated.
Last update: 2024-12-27 13:04:03 UTC
README
It supports Laravel 9+ and PHP 8.1+
Description
This package is small cli tool for creating the Action class, DTO class and Service class.
Installation
Laravel
Require this package with composer using the following command:
composer require thuraaung2493/laravel-make-files-tools@dev
Usage
To create DTO class
php artisan make:dto NewUser --pest // created in App\DataObjects\NewUser.php & tests/Feature/DataObject/NewUserTest.php
To create Action class
php artisan make:action CreateUserAction --pest // created in App\Actions\CreateUserAction.php & tests/Feature/Actions/CreateUserActionTest.php
To create Service class
php artisan make:service NotificationService --pest // created in App\Services\NotificationService.php & tests/Feature/Services/NotificationServiceTest.php