wp-cli / ideas

💡 Ideas and feature requests are collected here
40 stars 1 forks source link

Create a wp-cli-shim #145

Open Rahe opened 4 years ago

Rahe commented 4 years ago

Describe your use case and the problem you are facing

Most of the time I need to centralize all the project dependencies into the composer.json file, wp-cli.phar executable too ! But this install lot's of PHP dependencies that can conflict with project dependencies. I can add wpcli to the required but ultimately only use the phar.

Describe the solution you'd like

Make a repository like https://github.com/phpro/grumphp-shim that can be added composing only with the .phar and not installing all the dependencies and still defining them into the composer.json file.

schlessera commented 2 years ago

I'm happy to add something like that, as dev dependencies have always been an issue. Not only do they cause conflicts, the autoloader also pollutes the real project with random code becoming active due to BC-logic in place.

schlessera commented 2 years ago

Related: https://github.com/wp-cli/wp-cli-bundle/issues/134