承接 johnitvn/yii2-workbench 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

johnitvn/yii2-workbench

Composer 安装命令:

composer require johnitvn/yii2-workbench

包简介

Yii2 workbench support for yii2 extension development

README 文档

README

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads

Yii2 workbench support for yii2 extension development

When you development package yii2 the default you have 2 options:

  • You can store source code in github or local git repository
  • You can store source code in local disk and add extensions in to extension config of yii

The weakness of above options:

  • With the first option, you take a lot time with composer update. Maybe peoples in US Coast (location places of Packagist and Github server) is better luck other ones because time to run \composer update will be shorter than peoples in other regions.
    Of course, you can pull and push directly in vendor directory for you package. But when you work with multiple packages paralel. When you want to add required a new dependency package. You must push all your packages to server and wait to composer update. Really bad, sometime i have take 30 minutes for composer update.

  • With the second option, you must define required package in composer.json of main project, and define the bootstrap class in web config. The manipulation looks unnatural like when you release or public your package.

That's all reason for development this package. I have been work with laravel. They have feature called workbench, too. I really like the way workbench work. And now, after i'm developed workbench, just change code and refresh browser. Very amazing for my work, and you how do feel about this extension let me know your comment.

Features

  • Support for quick development extension in Yii2
  • Support autoload with package's composer.json
  • Support bootstrap in composer.json

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist johnitvn/yii2-workbench "*"

or add

"johnitvn/yii2-workbench": "*"

to the require section of your composer.json file.

Configuration

Let add workbench component in both your main config and console config

'components' => [
    'workbench'=>[
        'class' => 'johnitvn\workbench\Workbench',
        'workingDir' => dirname(__DIR__).'/workbench',
        'author' => "Author Name",
        'email' => "author@example.com",
        'onlyIncludePackages' => [
            'johnitvn/yii2-ajaxcrud',
        ]
    ],
]

The working dir is directory you want to develop package.
The author and email use for create package template.
The onlyIncludePackages is list package you want to load. Set null if you want to load all

Usage

The first let create your new package.

Use this command

$ yii workbench/create {vendor}/{package}

or

$ yii workbench/create

If you don't set package fullname param. Application will prompt you.

Now you can see in the {workingDir}/{vendor}/{package}. The template of package is

- src/
- test/
- vendor/
- phpunit.xml
- composer.json

File composer.json defined the autoload psr-4 for you.You can change it if you want
If you want to define bootstrap just add to composer.json

"extra": {
    "bootstrap": "{vendor}\\{package}\\Bootstrap"
}

For psr-4 and bootstrap change you just run application don't need update anything. When you add new dependency into composer.json you must run composer update in your package root.

One more thing, when you add dependency to one package exist in workbench workspace, workbench with not load from package's vendor, workbench will load from workspace.

johnitvn/yii2-workbench 适用场景与选型建议

johnitvn/yii2-workbench 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 265 次下载、GitHub Stars 达 5, 最近一次更新时间为 2015 年 07 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 johnitvn/yii2-workbench 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 johnitvn/yii2-workbench 我们能提供哪些服务?
定制开发 / 二次开发

基于 johnitvn/yii2-workbench 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-07-21