phpstan / extension-installer

Composer plugin for automatic installation of PHPStan extensions.
MIT License
399 stars 27 forks source link

Is it possible to run this plugin manually? #6

Closed enumag closed 5 years ago

enumag commented 5 years ago

When dockerizing my application I first COPY just composer.json and composer.lock, then I have a RUN layer with composer install and only then copy the rest of the application. This is good for caching the layer with all the installed packages.

Unfortunately since I'm using symfony/flex I have to run composer install with --no-scripts because otherwise flex would fail when I don't have the application files yet (missing configuration for some bundles).

This of course disables phpstan/extension-installer as well so I'd like to run it manually somehow. Is there a way to do that?

ondrejmirtes commented 5 years ago

I don't know. If your needs don't match how the plugin works, you probably can't use it...

enumag commented 5 years ago

It would be possible to implement this. For example vaimo/composer-patches has this feature - you can run the plugin's logic manually using composer patch:apply.

ondrejmirtes commented 5 years ago

Feel free to send a PR :)

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.