PHPackages                             cakephp/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. [Framework](/categories/framework)
4. /
5. cakephp/plugin-installer

ActiveComposer-plugin[Framework](/categories/framework)

cakephp/plugin-installer
========================

A composer installer for CakePHP plugins.

2.0.1(2y ago)3311.9M—0.2%1520MITPHPPHP &gt;=8.1CI passing

Since Aug 29Pushed 2mo ago22 watchersCompare

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

READMEChangelog (8)Dependencies (4)Versions (28)Used By (20)

CakePHP Plugin Installer
========================

[](#cakephp-plugin-installer)

[![Build Status](https://camo.githubusercontent.com/2008d5e4617eb4d7100289f0291a3f9d17df785bb4974e7e0baac7b69a3aebe5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63616b657068702f706c7567696e2d696e7374616c6c65722f63692e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/cakephp/plugin-installer/actions/workflows/ci.yml)[![Latest Stable Version](https://camo.githubusercontent.com/d0499b4a32aec4ec48417eb5d3dad48ed697dfd9bef695aeef7c3b7896e8096c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f63616b657068702f706c7567696e2d696e7374616c6c65723f736f72743d73656d766572267374796c653d666c61742d737175617265)](https://packagist.org/packages/cakephp/plugin-installer)[![Total Downloads](https://camo.githubusercontent.com/6fe258271c1b5a34874ff0404b06848839c648e0b30eec1bcbed549917a3c5bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63616b657068702f706c7567696e2d696e7374616c6c65723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cakephp/plugin-installer/stats)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A composer installer for installing CakePHP plugins.

This installer ensures your application is aware of CakePHP plugins installed by composer in `vendor/`.

Usage
-----

[](#usage)

Your CakePHP application should already depend on `cakephp/plugin-installer`, if not in your CakePHP application run:

```
composer require cakephp/plugin-installer:*

```

Your plugins themselves do **not** need to require `cakephp/plugin-installer`. They only need to specify the `type` in their composer config:

```
"type": "cakephp-plugin"
```

Multiple Plugin Paths
---------------------

[](#multiple-plugin-paths)

If your application uses multiple plugin paths. In addition to configuring your application settings you will also need to update your `composer.json` to ensure the generated `cakephp-plugins.php` file is correct:

```
// Define the list of plugin-paths your application uses.
"extra": {
    "plugin-paths": ["plugins", "extra_plugins"]
}

```

Plugin Setup
------------

[](#plugin-setup)

For the installer to work properly ensure that your plugin's composer config file has a proper autoload section. Assuming your plugin's namespace is "MyPlugin" the autoload section would be like:

```
"autoload": {
    "psr-4": {
        "MyPlugin\\": "src/"
    }
}
```

Not strictly necessary for the working of the installer but ideally you would also have an "autoload-dev" section for loading test files:

```
"autoload": {
    "psr-4": {
        "MyPlugin\\": "src/"
    }
},
"autoload-dev": {
    "psr-4": {
        "MyPlugin\\Test\\": "tests/",
        "Cake\\Test\\" : "vendor/cakephp/cakephp/tests/"
    }
}
```

If your top level namespace is a vendor name then your namespace to path mapping would be like:

```
"autoload": {
    "psr-4": {
        "MyVendor\\MyPlugin\\": "src/"
    }
},
"autoload-dev": {
    "psr-4": {
        "MyVendor\\MyPlugin\\Test\\": "tests/",
        "Cake\\Test\\" : "vendor/cakephp/cakephp/tests/"
    }
}
```

Generating Manually
-------------------

[](#generating-manually)

If you need to generate `cakephp-plugins.php` separately, you can simply run the `dumpautoload` command:

```
composer dumpautoload

```

You cannot use `--no-scripts` with `dumpautoload` or `cakephp-plugins.php` will not generate.

If you don't want to re-generate the entire autoload dump, you can run just the scripts:

```
composer run-script post-autoload-dump

```

Please see [composer documentation](https://getcomposer.org/doc/03-cli.md#dump-autoload-dumpautoload-) for details.

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance58

Moderate activity, may be stable

Popularity58

Moderate usage in the ecosystem

Community45

Growing community involvement

Maturity82

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~162 days

Recently: every ~296 days

Total

27

Last Release

64d ago

Major Versions

0.0.15 → 1.0.02017-03-21

1.3.1 → 2.0.0-beta12022-12-14

1.x-dev → 2.0.02023-09-06

PHP version history (4 changes)1.3.0-betaPHP ^7.2

1.3.0PHP &gt;=7.2.0

1.3.1PHP &gt;=5.6.0

2.0.0-beta1PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23666?v=4)[CakePHP](/maintainers/cakephp)[@cakephp](https://github.com/cakephp)

---

Top Contributors

[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (74 commits)")[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (44 commits)")[![AD7six](https://avatars.githubusercontent.com/u/33387?v=4)](https://github.com/AD7six "AD7six (34 commits)")[![LordSimal](https://avatars.githubusercontent.com/u/9105243?v=4)](https://github.com/LordSimal "LordSimal (22 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (11 commits)")[![othercorey](https://avatars.githubusercontent.com/u/24221186?v=4)](https://github.com/othercorey "othercorey (9 commits)")[![antograssiot](https://avatars.githubusercontent.com/u/4977112?v=4)](https://github.com/antograssiot "antograssiot (4 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (3 commits)")[![jadb](https://avatars.githubusercontent.com/u/33527?v=4)](https://github.com/jadb "jadb (3 commits)")[![josegonzalez](https://avatars.githubusercontent.com/u/65675?v=4)](https://github.com/josegonzalez "josegonzalez (2 commits)")[![Arhell](https://avatars.githubusercontent.com/u/26163841?v=4)](https://github.com/Arhell "Arhell (2 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (2 commits)")[![nojimage](https://avatars.githubusercontent.com/u/100564?v=4)](https://github.com/nojimage "nojimage (2 commits)")[![swiffer](https://avatars.githubusercontent.com/u/2990373?v=4)](https://github.com/swiffer "swiffer (1 commits)")[![cleptric](https://avatars.githubusercontent.com/u/6617432?v=4)](https://github.com/cleptric "cleptric (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (1 commits)")[![jippi](https://avatars.githubusercontent.com/u/22841?v=4)](https://github.com/jippi "jippi (1 commits)")

---

Tags

cakephpcomposer-pluginphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[composer/installers

A multi-framework Composer library installer

1.4k136.0M6.0k](/packages/composer-installers)[yiisoft/yii2-composer

The composer plugin for Yii extension installer

8628.8M55](/packages/yiisoft-yii2-composer)[pestphp/pest-plugin

The Pest plugin manager

4558.2M109](/packages/pestphp-pest-plugin)[oro/platform

Business Application Platform (BAP)

644134.8k84](/packages/oro-platform)[yiisoft/config

Composer plugin and a library for config assembling

34368.9k27](/packages/yiisoft-config)

PHPackages © 2026

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