PHPackages                             johnitvn/yii2-workbench - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. johnitvn/yii2-workbench

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

johnitvn/yii2-workbench
=======================

Yii2 workbench support for yii2 extension development

1.0.2(10y ago)52653[2 issues](https://github.com/johnitvn/yii2-workbench/issues)Apache-2.0PHP

Since Jul 22Pushed 10y ago2 watchersCompare

[ Source](https://github.com/johnitvn/yii2-workbench)[ Packagist](https://packagist.org/packages/johnitvn/yii2-workbench)[ RSS](/packages/johnitvn-yii2-workbench/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Yii2 workbench
==============

[](#yii2-workbench)

[![Latest Stable Version](https://camo.githubusercontent.com/176670b854e5126015bd1c381141369e7aa4828da6c2e642b79299d13ed2df06/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d776f726b62656e63682f762f737461626c65)](https://packagist.org/packages/johnitvn/yii2-workbench)[![License](https://camo.githubusercontent.com/18f6b430bec731630a14eb7ca3c454456d833b217a925519a3ac88adb18e988a/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d776f726b62656e63682f6c6963656e7365)](https://packagist.org/packages/johnitvn/yii2-workbench)[![Total Downloads](https://camo.githubusercontent.com/fdd3255dace33a5c7d3d3723f25ef444beccb60f0e9bbd03d449eab6fb09e9e8/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d776f726b62656e63682f646f776e6c6f616473)](https://packagist.org/packages/johnitvn/yii2-workbench)[![Monthly Downloads](https://camo.githubusercontent.com/8d659086c5d00b5c4ce9d42781710f5891e65631e7a5b12135a7ca7aca320c40/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d776f726b62656e63682f642f6d6f6e74686c79)](https://packagist.org/packages/johnitvn/yii2-workbench)[![Daily Downloads](https://camo.githubusercontent.com/45dbbb148ecf65e57832a4aa70d778d8e379d6e49b8329ed8c05ccade07d3d27/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d776f726b62656e63682f642f6461696c79)](https://packagist.org/packages/johnitvn/yii2-workbench)

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
--------

[](#features)

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

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

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
-------------

[](#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
-----

[](#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.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

3

Last Release

3936d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb877e0e33a4c6d8bccbffefa8c1648b61f4b74d3a98917a3b4d342823466ca8?d=identicon)[johnitvn](/maintainers/johnitvn)

---

Top Contributors

[![johnitvn](https://avatars.githubusercontent.com/u/8359652?v=4)](https://github.com/johnitvn "johnitvn (15 commits)")

### Embed Badge

![Health badge](/badges/johnitvn-yii2-workbench/health.svg)

```
[![Health](https://phpackages.com/badges/johnitvn-yii2-workbench/health.svg)](https://phpackages.com/packages/johnitvn-yii2-workbench)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
