Download the PHP package toshkq93/laravel-components without Composer
On this page you can find all versions of the php package toshkq93/laravel-components. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download toshkq93/laravel-components
More information about toshkq93/laravel-components
Files in toshkq93/laravel-components
Package laravel-components
Short Description add dtos, requests, resources,controller, repository and service (interface + class) in your project
License MIT
Informations about the package laravel-components
Installation
Install the package via composer
Usage
Publish the config file with:
Go to the root folder of your project and enter the command:
Example:
and your project will create:
- DTOs (input (App\DTO\Input) and output (App\DTO\Output) classes) + interfaces,
- controller (App\Http\Controllers\API)
- requests (App\Http\Requests),
- resources (App\Http\Resources),
- repository and service (interface (App\Contracts\Repositories) + class (App\Repositories) + base class),
- service (interface ( App\Contracts\Services) + class (App\Services) + base class)
you can also use other flags in various combination:
- --dto - create DTO classes input and output,
- --controller - create controller class,
- --resource - create resource classes,
- --service - create service class,
- --request - create request classes,
- --repository - create repository class.
- --all - all of the above
After generating services and repositories, bind is automatically added to the container in the App\Provides\AppServiceProvider.
After the controller is generated, a resource route is automatically added depending on the file name (api - apiResource, web - resource). You can also change the path to the 'route_path' route file in the configuration file.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-components with dependencies
spatie/data-transfer-object Version ^3.7
nette/php-generator Version ^4.0
doctrine/dbal Version ^3.3