bmartel/workshop
Composer 安装命令:
composer require bmartel/workshop
包简介
A package generator for web artisans.
README 文档
README
Workshop is a commandline tool for quickly generating Laravel based composer packages.
Usage
Install
composer global require "bmartel/workshop=~1.0"
Build something
workshop build vendor/package
cd package and you will see a skeleton structure for building a package.
Laravel Generators
For convenience, most of the Laravel generators have been included so you can quickly build up Laravel based packages.
Any make: generator command you are used to in a Laravel project, php artisan make:{something}, is available through workshop build:{something}.
All commands are also available through the make alias workshop make:{something}, so you only have to remember the Laravel API for the commands.
By default all generators will place the generated class files in a best guess location based on your namespacing and folder structure. If the defaults aren't working for you, you can always explicitly state where you want your files to be generated by providing the full class namespace as the name argument to the generator commands.
Migrations will always be generated into a root level migrations folder of the package. This is due to the structure and default handling in the ServiceProvider included with all workshop scaffolded packages.
workshop build:console <name> [--command]
workshop build:controller <name> [--plain]
workshop build:event <name>
workshop build:job <name> [--queued]
workshop build:listener <name> (--event) [--queued]
workshop build:middleware <name>
workshop build:migration <name> [--create] [--table]
workshop build:model <name> [--migration]
workshop build:request <name>
For more information regarding a specific command, see the Laravel official documentation.
Laravel packages
You can make use of this package and develop it within a local laravel application you may have. To pull this package
into your local development app, add the vendor/package you provided as argument to the workshop build command to the app's composer.json (lets assume the package created was acme/sprockets):
require: {
"acme/sprockets": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "/path/to/where/acme/sprockets/was/created/locally"
}
],
Run composer update acme/sprockets from your laravel app's root directory, and you are setup for easy local package development.
The development workflow simply becomes: make a change in the package on your local filesystem, go to your local development laravel app you are including the package and run composer update vendor/package. Rinse and repeat until you are ready to push it up to github or bitbucket and add the package to packagist, upon which you can drop the repostories entry and just include the composer require entry for the package.
And thats really all there is to it. Spend more time building something great, and less time naming, renaming and copying files.
Contributing
All contributions whether features or fixes should be backed by a test which outlines the work being done. Pull requests should be made to the develop branch.
Development
To begin development, run composer install in the root of the project and start making changes. As you
develop you can run the tests via vendor/bin/phpspec run -v .
Credits
Developed and maintained by Brandon Martel
bmartel/workshop 适用场景与选型建议
bmartel/workshop 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 31 次下载、GitHub Stars 达 5, 最近一次更新时间为 2015 年 02 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 bmartel/workshop 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bmartel/workshop 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-05