deveodk/distributed-generators 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

deveodk/distributed-generators

Composer 安装命令:

composer require deveodk/distributed-generators

包简介

Smart generators for distrubuted laravel (https://github.com/esbenp/distributed-laravel). Spin up new bundles in the matter of seconds

README 文档

README

Laravel 5.1

Smart generators for distrubuted laravel (https://github.com/esbenp/distributed-laravel). Spin up new bundles in the matter of seconds

Example

Example of a generated bundle with files

skaermbillede 2017-06-15 kl 18 43 58

The package will generate all of the files it can be configured in the config file

skaermbillede 2017-06-15 kl 18 45 12

Installation

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"

Important disclaimer

This package is made to work with the distributed laravel architecture. If you try to use it in regular laravel it will not work.

Usage

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"

Special thanks

A special thanks to esbenp for creating the distributed laravel structure that this package is build on

License

MIT

统计信息

  • 总下载量: 190
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固