定制 aindong/custom-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

aindong/custom-generator

最新稳定版本:1.0

Composer 安装命令:

composer require aindong/custom-generator

包简介

A custom generator that would generate a new feature for a repository pattern application

README 文档

README

A laravel custom generator inspired by the generator packaged of jeffrey way. This generator will generate files that are needed for a repository pattern structure.

Installation

  1. Add this into your laravel composer.json file, under require
"require-dev": {
  "aindong/custom-generator": "dev-master"
}
  1. Open up your terminal and run
composer update
  1. After downloadign the package. Open up your app/config/app.php file and inside the $providers array add this
'Aindong\CustomGenerator\Providers\CustomGeneratorServiceProvider',
  1. If errors occured like, it can't find the package. Run
composer dumpautoload -o

Usage

  1. Inside your app folder, create a customized folder name that will contain all of your features. For example I created an Acme Folder
-app
--Acme
  1. And under your custom folder, create a Features folder.
-app
--Acme
---Features
  1. Now on your terminal, type
php artisan generate:feature featurename --path=app/Acme --namespace=Acme
  1. TADA! now check your features folder for the magic!

Notes

This package already has an interface and an abstract of a regular crud process of eloquent built in. But you can always change or create your own.

Notes

This package is still under development but I'm already using it to make my work faster and reduce the time of creating new files and restructuring them. Feel free to suggest.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-07