PHPackages                             superpms/extend-plugins - 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. superpms/extend-plugins

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

superpms/extend-plugins
=======================

pms plugins extend

v1.0.x-dev(1mo ago)039Apache-2.0PHPPHP &gt;=8.1

Since May 21Pushed 1mo agoCompare

[ Source](https://github.com/superpms/extend-plugin)[ Packagist](https://packagist.org/packages/superpms/extend-plugins)[ RSS](/packages/superpms-extend-plugins/feed)WikiDiscussions v1.0 Synced today

READMEChangelogDependencies (2)Versions (1)Used By (0)

superpms/extend-plugins
=======================

[](#superpmsextend-plugins)

`superpms/extend-plugins` is the plugin loader package for PMSPHP. It mounts the project plugin root during framework boot, loads enabled plugin `autoload.php` files from `plugins/installed.php`, registers the `plugin-install` terminal command, and provides the `PluginsApp` trait used by plugin classes to read their own config and paths.

Runtime Position
----------------

[](#runtime-position)

In the current server project, this package is required by `server/composer.json` and participates in boot through Composer `autoload.files`:

1. `bin/autoload.php` requires `bin/autorun.php`.
2. `bin/autorun.php` mounts `pms\extend\plugins\Setup` on `LIFECYCLE_BOOT` when `LifecycleHook` is available.
3. `bin/autorun.php` mounts `pms\extend\plugins\PluginInstallCommand` when `TerminalCommandHook` is available.
4. `Setup` reads `boot.json` `extend.plugins`, mounts `pluginsRoot`, then loads enabled plugin autoload files.

The package does not scan every plugin directory automatically. Runtime loading is controlled by `plugins/installed.php`.

Main Capabilities
-----------------

[](#main-capabilities)

- Mount the plugin root path with `Path::mount('pluginsRoot', ...)`.
- Create a default `plugins/installed.php` if it is missing.
- Include each enabled plugin's `autoload.php`.
- Validate and install a plugin name through the `plugin-install` terminal command.
- Expose plugin-local `config()` and `path()` helpers through the `PluginsApp` trait.
- Add IDE-helper metadata for `Path::getPluginsRoot(...)`.

Documentation
-------------

[](#documentation)

Detailed developer documentation lives under [docs/README.md](docs/README.md).

- [Architecture](docs/architecture/runtime-loading.md)
- [Modules](docs/modules/setup.md)
- [How To](docs/how-to/create-and-install-plugin.md)
- [Reference](docs/reference/plugin-files.md)

Install
-------

[](#install)

```
composer require superpms/extend-plugins
```

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

[](#requirements)

- PHP `>=8.1`
- Runtime integration with `superpms/basic`
- Terminal command integration requires `superpms/interpreter-terminal`

The current `server` project requires PHP `>=8.2`, but this package's own Composer constraint is PHP `>=8.1`.

Development Notes
-----------------

[](#development-notes)

- Keep plugin runtime behavior in this package separate from plugin business implementation.
- Treat `installed.php` as the loading whitelist.
- Treat `plugin.json` as install-time metadata and validation input.
- Do not add business-specific behavior to this package; concrete plugins live under the consuming project's `plugins/` directory.

License
-------

[](#license)

Apache-2.0. See [LICENSE.txt](LICENSE.txt).

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance91

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 93.3% 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

Unknown

Total

1

Last Release

44d ago

### Community

Maintainers

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

---

Top Contributors

[![XiyiaoBoss](https://avatars.githubusercontent.com/u/170755009?v=4)](https://github.com/XiyiaoBoss "XiyiaoBoss (14 commits)")[![kid-caaccf](https://avatars.githubusercontent.com/u/34892782?v=4)](https://github.com/kid-caaccf "kid-caaccf (1 commits)")

### Embed Badge

![Health badge](/badges/superpms-extend-plugins/health.svg)

```
[![Health](https://phpackages.com/badges/superpms-extend-plugins/health.svg)](https://phpackages.com/packages/superpms-extend-plugins)
```

PHPackages © 2026

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