Skip to content

Bring back Phar archives#658

Merged
scribu merged 9 commits intomasterfrom
phar-builder
Aug 15, 2013
Merged

Bring back Phar archives#658
scribu merged 9 commits intomasterfrom
phar-builder

Conversation

@scribu
Copy link
Member

@scribu scribu commented Aug 14, 2013

@DavertMik made a convincing case for providing a Phar archive as an installation option.

In summary:

If you're using WP-CLI yourself, you should install it via Composer.

If you want to use WP-CLI as a tool for automation, like say in a Travis CI script, it makes more sense to download a single Phar archive. (We could even use this to replace https://github.com/wp-cli/wp-cli/blob/master/templates/install-wp-tests.sh)

A wp self-update command (#522) would need to take into account if it's installed as a Phar archive or not.

The plan is to have two Phar files:

  • wp-cli.org/builds/phar/wp-cli-stable.phar
  • wp-cli.org/builds/phar/wp-cli-nightly.phar

Tasks:

@DavertMik
Copy link

Awesome! I will include wp-cli into the next part of "WordPress Testing" series.

scribu pushed a commit that referenced this pull request Aug 15, 2013
@scribu scribu merged commit b617933 into master Aug 15, 2013
@scribu
Copy link
Member Author

scribu commented Aug 15, 2013

scribu added a commit that referenced this pull request Aug 15, 2013
scribu added a commit that referenced this pull request Aug 16, 2013
@scribu
Copy link
Member Author

scribu commented Aug 23, 2013

Having a Phar file really came in handy today.

I had an old install of WP-CLI 0.10-alpha running on an underpowered server. When I tried to run composer update, it fatal-errored, complaining that it didn't have enough memory. Scrapped the install and just downloaded the Phar file instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:distribution Related to distribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants