PHPackages                             vladitot/composer-extra-plugin - 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. vladitot/composer-extra-plugin

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

vladitot/composer-extra-plugin
==============================

v1.0.16(7y ago)1945PHP

Since Aug 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/vladitot/composer-extra-plugin)[ Packagist](https://packagist.org/packages/vladitot/composer-extra-plugin)[ RSS](/packages/vladitot-composer-extra-plugin/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (18)Used By (0)

What is composer-extra-plugin?
------------------------------

[](#what-is-composer-extra-plugin)

It is custom plugin, which can get settings from json files, included via composer.json. Plugin correctly works with **wikimedia/composer-merge-plugin**. You can storage your settings in included non-tracked file, for example.

In additional, composer-extra-plugin can be used for automatisation long commads, like **docker-compose**.

How to install
--------------

[](#how-to-install)

```
composer require vladitot/composer-extra-plugin

```

### If you just deployed project, which contains this plugin for managing docker, and cant start it without plugin, it is recommended to do:

[](#if-you-just-deployed-project-which-contains-this-plugin-for-managing-docker-and-cant-start-it-without-plugin-it-is-recommended-to-do)

```
composer install --ignore-platofrm-reqs

    instead of

composer install

```

Plugin will be installed and then you can use it correctly.

How to use?
-----------

[](#how-to-use)

#### You can store settings in your composer.json file.

[](#you-can-store-settings-in-your-composerjson-file)

Like this:

```
 "extra": {
    "XDEBUG_CONFIG": {
      "remote_host": "192.168.1.47",
      "remote_port": "9001",
      "remote_mode": "req",
      "remote_handler": "dbgp",
      "idekey": ""
    },
    "sshkey": {
      "sshKeyPath": "/home/username/.ssh/id_rsa"
    }
}

```

Then you can get params like this:

```
composer extra-get "sshkey-sshKeyPath"
composer extra-get "sshkey"

```

\####What about commands? Use this

```
"extra": {
    "sshkey": {
      "sshKeyPath": "/home/username/.ssh/id_rsa"
    },
    "extracommands": {
      "@7%": "cd laradock",
      "@8%": "cd ../",
      "@9%": "echo Building... && docker-compose build workspace php-fpm nginx laravel-horizon",

      "up":  "@7% && @9% && docker-compose up -d workspace laravel-horizon nginx redis memcached portainer redis-commander selenoid selenoid-ui && @8%",
      "restart-all":  "@7% && docker-compose restart workspace nginx redis memcached portainer laravel-horizon selenoid selenoid-ui redis-commander && @8%",
      "restart":  "@7% && docker-compose restart @params% && @8%",
      }
   }

```

Then you can use it like this:

```
composer runt up

or

composer runt down

```

on your host machine, and it will run command, as alias.

#### P.S. Getting variables from your PHP application

[](#ps-getting-variables-from-your-php-application)

In additional, you can get settings from json inside your application. Use class **\\ExtraPlugin\\StaticHelper** for this

#### Lifehack for Linux

[](#lifehack-for-linux)

Put in your ~/.bashrc:

```
function runt () {
	A="composer runt \"$1\" \"${@:2}\""
	bash -c "$A"
}

```

Then you will allow to use (instead of composer runt artisan):

```
runt artisan

```

By the way, with this lifehack you will able to use additional params for command under "runt".

```
runt artisan --help

```

It will show **artisan help** instead of **composer help**

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity71

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

Recently: every ~19 days

Total

17

Last Release

2777d ago

### Community

Maintainers

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

---

Top Contributors

[![vladitot](https://avatars.githubusercontent.com/u/20747106?v=4)](https://github.com/vladitot "vladitot (21 commits)")

### Embed Badge

![Health badge](/badges/vladitot-composer-extra-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/vladitot-composer-extra-plugin/health.svg)](https://phpackages.com/packages/vladitot-composer-extra-plugin)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74794.9M939](/packages/symfony-runtime)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5973.6M93](/packages/roave-backward-compatibility-check)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M526](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.0M193](/packages/drupal-core-project-message)[brianhenryie/strauss

Prefixes dependencies namespaces so they are unique to your plugin

186406.5k30](/packages/brianhenryie-strauss)[sandersander/composer-link

Adds ability to link local packages for development with composer

94441.4k](/packages/sandersander-composer-link)

PHPackages © 2026

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