The PHAR Installation and Verification Environment (PHIVE)

Installation and verification of phar distributed PHP applications has never been this easy!

Adding all the required tools like PHPUnit, PHPMD and phpDox in their matching versions to a project used to be a lot of repetitive work: Started by finding the download URL, figuring out what the actually correct and matching version is followed by verifying the SHA1 and GPG signatures and making the archive executable. And of course you’d have to repeat this very thing for every tool needed.

Alternatively, you could have used composer. Only to clutter your project’s dependencies with the ones of your tools. And fight their potential dependency conflicts.

No more! Now you can rely on PHIVE to install and manage your project’s tooling needs without all the hassle and without cluttered dependencies!

Logo PHIVE

Installation

Installation of PHIVE is easy and about the last time you have to do anything PHAR related manually.

Grab your copy of PHIVE from the releases section or run these simple steps in a terminal:

wget -O phive.phar https://phar.io/releases/phive.phar
wget -O phive.phar.asc https://phar.io/releases/phive.phar.asc
gpg --keyserver pool.sks-keyservers.net --recv-keys 0x9D8A98B29B2D5D79
gpg --verify phive.phar.asc phive.phar
chmod +x phive.phar
sudo mv phive.phar /usr/local/bin/phive

Usage

Once installed, PHIVE is ready for action. Some example invocations are shown below:

phive install phpunit
phive install theseer/Autoload
phive install -copy phpdox
phive install --target ./build/tools phpdox
phive install https://phar.phpunit.de/phpunit-4.8.6.phar
PHIVE is still under heavy development. Please report any issues you find!

Supported Tools

Many famous PHP tools can already be installed via PhiVE. Among them the following well known projects:

Your's missing? Let us know!

Contributing

PHIVE and PHAR.IO are open source projects released under the BSD license. You are welcome to join the development team!

Fork us!