PHPackages                             ec-cube2/plugin-installer - 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. ec-cube2/plugin-installer

ActiveComposer-plugin

ec-cube2/plugin-installer
=========================

EC-CUBE2 Plugin / Module Installer for Composer.

1.1.0(5y ago)2181↓100%4MITPHPPHP &gt;=5.3.3

Since Mar 12Pushed 5y agoCompare

[ Source](https://github.com/ec-cube2/plugin-installer)[ Packagist](https://packagist.org/packages/ec-cube2/plugin-installer)[ RSS](/packages/ec-cube2-plugin-installer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (8)Used By (4)

EC-CUBE2 Installer for Composer
===============================

[](#ec-cube2-installer-for-composer)

EC-CUBE2 の Plugin / Module / Template を Composer で管理できるようになります。

EC-CUBE2への実際のインストールなどは分離しました。`ec-cube2/cli` を利用してください。

Installation / Usage
--------------------

[](#installation--usage)

### 1. コマンドを実行してください。

[](#1-コマンドを実行してください)

例) ExamplePlugin ( `ec-cube2-plugin/example_plugin` ) をインストールする場合

以下のようにコマンドを実行してください。
もちろん、プラグインのバージョン指定も可能です。

```
$ composer require ec-cube2-plugin/example_plugin
```

もちろん、通常のComposerと同様にGitHubなどの外部リポジトリをそのまま指定することも可能です。
Composer の[ドキュメント](https://getcomposer.org/doc/05-repositories.md#vcs)を参照してください。

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/ec-cube2-plugin/example_plugin"
        }
    ],
    "require": {
        "ec-cube2-plugin/example_plugin": "dev-master"
    }
}

```

インストールしたいパスを変更したい場合

```
{
    "extra": {
        "installer-paths": {
            "data/downloads/plugin/{$name}/": ["type:eccube2-plugin"],
            "data/downloads/module/{$name}/": ["type:eccube2-module"],
            "data/Smarty/templates/{$name}/": ["type:eccube2-template"]
        }
    }
}

```

### 2. Composer を実行してください。

[](#2-composer-を実行してください)

```
$ composer install --no-dev
```

### 3. これで終了。

[](#3-これで終了)

これだけです。

composer.json
-------------

[](#composerjson)

### プラグイン

[](#プラグイン)

以下のように準備してください。 Packagist に登録する場合、 `ec-cube2-plugin` 部分はあなた専用の Namespace を指定する必要があります。
`example_plugin` 部分は小文字で指定する必要があります。インストール時に ExamplePlugin のように CamelCase に変換されます。

```
{
    "name": "ec-cube2-plugin/example_plugin",
    "description": "サンプルプラグイン",
    "type": "eccube2-plugin",
    "license": "LGPL",
    "homepage": "http://www.example.com/",
    "require": {
        "ec-cube2/plugin-installer": "^1.0"
    }
}

```

### モジュール

[](#モジュール)

以下のように準備してください。 Packagist に登録する場合、 `ec-cube2-module` 部分はあなた専用の Namespace を指定する必要があります。
`mdl_example` 部分が、モジュールの code になります。他のモジュールと重複しない必要があります。

※オーナーズストア経由で導入したモジュールと同一もモジュールをインストールすると動作に影響する可能性があります。

```
{
    "name": "ec-cube2-module/mdl_example",
    "description": "サンプルモジュール",
    "type": "eccube2-module",
    "license": "LGPL",
    "homepage": "http://www.example.com/",
    "require": {
        "ec-cube2/plugin-installer": "^1.0"
    }
}

```

### テンプレート

[](#テンプレート)

以下のように準備してください。 Packagist に登録する場合、 `ec-cube-plugin` 部分はあなた専用の Namespace を指定する必要があります。
`sample` 部分が、テンプレートの code になります。他のテンプレートと重複しない必要があります。

```
{
    "name": "ec-cube2-template/sample",
    "description": "サンプルテンプレート",
    "type": "eccube2-template",
    "license": "LGPL",
    "homepage": "http://www.example.com/",
    "require": {
        "ec-cube2/plugin-installer": "^1.0"
    }
}

```

Requirements
------------

[](#requirements)

PHP 5.3.3 以上

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~98 days

Recently: every ~110 days

Total

7

Last Release

2021d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35c2da973a64a21e8d23c221c1d284e4f1a04a74123318a978147e42a29eda23?d=identicon)[ttsuru](/maintainers/ttsuru)

---

Top Contributors

[![ttsuru](https://avatars.githubusercontent.com/u/578548?v=4)](https://github.com/ttsuru "ttsuru (7 commits)")

### Embed Badge

![Health badge](/badges/ec-cube2-plugin-installer/health.svg)

```
[![Health](https://phpackages.com/badges/ec-cube2-plugin-installer/health.svg)](https://phpackages.com/packages/ec-cube2-plugin-installer)
```

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k3](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[altis/core

Core module for Altis

19213.6k2](/packages/altis-core)[johnbillion/user-switching

Instant switching between user accounts in WordPress and WooCommerce.

19768.3k2](/packages/johnbillion-user-switching)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[php-composter/php-composter

Git Hooks Management through Composer.

10525.1k11](/packages/php-composter-php-composter)

PHPackages © 2026

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