wp-cli / wp-cli-bundle

📦 WP-CLI package that bundles the framework with a set of common commands
MIT License
84 stars 30 forks source link

Distribute a single PHAR file as composer package #134

Open szepeviktor opened 5 years ago

szepeviktor commented 5 years ago

Currently the phar file update is manual.

Could we create a Composer package that contains only the phar file?

schlessera commented 5 years ago

I'm not sure I understand. Can you elaborate what you mean by that?

szepeviktor commented 5 years ago

There could be a composer package named wp-cli/wp-cli-phar which would contain only 1 phar file. This way we could prevent dependency conflicts.

szepeviktor commented 5 years ago

See https://github.com/phpstan/phpstan-shim

schlessera commented 5 years ago

Sounds like a good idea. Are you into providing a PR for that? If so, let me know and I'll create the corresponding repository.

johnpbloch commented 1 month ago

I found this to be a necessary package, so I made one and released it here: https://github.com/johnpbloch/wp-cli-phar

If any of that would be useful for this effort, the code's MIT and free for the taking.

johnpbloch commented 1 month ago

Never mind, I didn't look for the resulting repo before commenting 😅

I'm glad this is officially supported now!

szepeviktor commented 1 month ago

https://github.com/wp-cli/wp-cli-shim seem not to be included in the release process.