PHPackages                             jaslin/composer-yii2-local-extension-setup-scripts - 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. jaslin/composer-yii2-local-extension-setup-scripts

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jaslin/composer-yii2-local-extension-setup-scripts
==================================================

setup local yii2 extension with composer scripts

0194PHP

Since Jul 27Pushed 10y agoCompare

[ Source](https://github.com/JasLin/composer-yii2-local-extension-setup-scripts)[ Packagist](https://packagist.org/packages/jaslin/composer-yii2-local-extension-setup-scripts)[ RSS](/packages/jaslin-composer-yii2-local-extension-setup-scripts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Composer-yii2-local-extension-setup-scripts
-------------------------------------------

[](#composer-yii2-local-extension-setup-scripts)

this script with help to generate local yii2 extension config of yii2 project

### root pakcage composer.json sample

[](#root-pakcage-composerjson-sample)

your composer.json of your yii2 project should look like :

```
{
  "config" : {
    "vendor-dir" : "vendor"
  },
  "require": {
      "jaslin/composer-yii2-local-extension-setup-scripts": "dev-master"
  },
  "scripts" : {
      "post-autoload-dump" : "jaslin\\yii2\\composer\\ComposerScripts::postAutoloadDump"
  },
  "extra" : {
      "local-psr-4" : [
        "    'botwave\\\\rbac\\\\' => array($vendorDir . '/botwave/rbac'),",
        "    'botwave\\\\user\\\\' => array($vendorDir .'/botwave/user'),"
      ],
      "local-yii2-extensions" : {
        "botwave/cms" :{
            "name" : "botwave/cms",
            "version" : "dev-master",
            "alias" : {
                    "@botwave/cms" :  "/botwave/cms",
                    "@botwave/cms/css" : "/botwave/cms/css"
             }
        },
        "botwave/message" :
        {
            "name" : "botwave/message",
            "version" : "888888-dev",
            "alias" : {
                    "@botwave/message" : "/botwave/message"
             }
        }
      }
  }
}

```

### result

[](#result)

this scripts will generate psr-4.php(for composer) and extensions.php (for yii2) with the configuration from the root package composer.json it will append the new configuration to the original config files.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/69a931fcbd7436a92ff32bf12b0b315a32ecceb4e58a9c0e17b9ef88c4e33354?d=identicon)[jas](/maintainers/jas)

---

Top Contributors

[![JasLin](https://avatars.githubusercontent.com/u/147611?v=4)](https://github.com/JasLin "JasLin (1 commits)")

### Embed Badge

![Health badge](/badges/jaslin-composer-yii2-local-extension-setup-scripts/health.svg)

```
[![Health](https://phpackages.com/badges/jaslin-composer-yii2-local-extension-setup-scripts/health.svg)](https://phpackages.com/packages/jaslin-composer-yii2-local-extension-setup-scripts)
```

###  Alternatives

[trentrichardson/jquery-timepicker-addon

Adds a timepicker to jQueryUI Datepicker.

2.6k70.2k](/packages/trentrichardson-jquery-timepicker-addon)[arietimmerman/laravel-url-shortener

Laravel Package for shortening urls

2867.4k](/packages/arietimmerman-laravel-url-shortener)[onapp/onapp-php-wrapper-external

OnApp PHP Client Library

2616.2k](/packages/onapp-onapp-php-wrapper-external)

PHPackages © 2026

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