The preferred method of installation is to use the Box PHAR which can be downloaded from the most recent Github Release. This method ensures you will not have any dependency conflict issue.
You can install Box with Phive
$ phive install humbug/box --force-accept-unsignedTo upgrade box use the following command:
$ phive update humbug/box --force-accept-unsignedYou can install Box with Composer:
$ composer global require humbug/boxIf you cannot install it because of a dependency conflict or you prefer to install it for your project, we recommend you to take a look at bamarni/composer-bin-plugin. Example:
$ composer require --dev bamarni/composer-bin-plugin
$ composer bin box require --dev humbug/box
$ vendor/bin/boxTo install box using Homebrew, you need to tap the box formula first
$ brew tap humbug/box
$ brew install boxThe box command is now available to run from anywhere in the system:
$ box -vTo upgrade box use the following command:
$ brew upgrade box