Package Data | |
---|---|
Maintainer Username: | deveodk |
Maintainer Contact: | jk@deveo.dk (Jason Kelly) |
Package Create Date: | 2017-06-15 |
Package Last Update: | 2017-07-31 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:01:48 |
Package Statistics | |
---|---|
Total Downloads: | 190 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Smart generators for distrubuted laravel (https://github.com/esbenp/distributed-laravel). Spin up new bundles in the matter of seconds
Example of a generated bundle with files
The package will generate all of the files it can be configured in the config file
composer require deveodk/distributed-generators
Add the service provider to the App config.
DeveoDK\DistributedGenerators\DistributedGeneratorsServiceProvider::class
Publish the vendor folder content
php artisan vendor:publish --provider="DeveoDK\DistributedGenerators\DistributedGeneratorsServiceProvider"
This package is made to work with the distributed laravel architecture. If you try to use it in regular laravel it will not work.
The package has multiple commands for generating models, listeners and so on.
# Generate a new User bundle. Ideal for bootstraping a new bundle
php artsian make:bundle User --all
# Generate a new User controller. It will automaticly be placed under /Controllers
php artsian make:bundle:controller User --namespace="integrations/User"
# Generate a new User model. It will automaticly be placed under /Models
php artsian make:bundle:model User --namespace="integrations/User"
# Generate a new User listerner. It will automaticly be placed under /Listeners
php artsian make:bundle:listener User --namespace="integrations/User"
# Generate a new User exception. It will automaticly be placed under /Exceptions
php artsian make:bundle:exception User --namespace="integrations/User"
# Generate a new User event. It will automaticly be placed under /Events
php artsian make:bundle:event User --namespace="integrations/User"
# Generate a new User transformer. It will automaticly be placed under /Transformers
php artsian make:bundle:transformer User --namespace="integrations/User"
# Generate a new User route file. It will automaticly be placed under /
php artsian make:bundle:route User --namespace="integrations/User"
A special thanks to esbenp for creating the distributed laravel structure that this package is build on