Skip to content

Install/Uninstall packages in pre/post install/update event script #11841

Discussion options

You must be logged in to vote

I think it'd be much easier to use replace to eliminate packages, like what is described as "Composer replace option" on this blog post for polyfills https://php.watch/articles/composer-replace-polyfills - that'd allow you from your root project to get rid of some sub-components you do not want.

But that sounds to me tricky and dangerous as you may mess things up. I think I'd rather live with a few extra deps installed if I were you.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Blacksmoke16
Comment options

Answer selected by Blacksmoke16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants