Questions tagged [composer-plugin]

6 questions
16
votes
1 answer

How to create a monolithic Composer package with a built-in composer-plugin?

I want my package to ship with a built-in composer-plugin. I have a structure like this: composer.json src/ ... plugin/ composer.json src/ ... The root composer.json is configured like this: { "name": "foo/bar", "type":…
mindplay.dk
  • 7,085
  • 3
  • 44
  • 54
13
votes
3 answers

Composer: List Project Scripts and Plugins?

Does composer have any built in way to display a list of plugins in the current project? Or is the only option for finding composer plugins some sort of text search through the composer.json files in vendor with something like $ find vendor -name…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
2
votes
1 answer

What is a Composer Package of Type composer-installer?

Composer allows users to create packages that are composer plugins. Plugins can subscribe to events emitted during the regular use of a composer and do things. Composer also allows users to create classes and objects that are composer installers. …
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
2
votes
2 answers

composer - how to install/prioritise specific packages first before the other packages?

I'd been setting up WordPress and obtaining its required plugins via composer for some years now, it works great, but I've given up trying to hack or be tricky when it comes to installing plugins that does not know how to use WP_SITEURL and also…
arvil
  • 840
  • 11
  • 27
1
vote
0 answers

How to connect a Yii composer plug-in to Yii database using Dependency Injection Container?

Calling all Yii and Composer masters! I need your help :) I'm new to Yii and I'm creating a composer plug-in for a Yii2 project and it needs the Dependency Injection Container to make this work. To summarize what my plug-in does is that once the…
Ren Camp
  • 430
  • 7
  • 14
0
votes
0 answers

Drupal.org automated tests failing with a composer error

I have a module on drupal.org. I have noticed that automated tests for it have started failing with the following errors-- Drupal.org error cweagans/composer-patches contains a Composer plugin which is blocked by your allow-plugins config. You may…