Skip to content

Using Composer with WPLib Box

While you certainly can install Composer on your host computer and use it with your WPLib Box project, hopefully you won't have to as we've implemented Composer within of WPLib Box.

Bug

Unfortunately Composer is broken in 0.17.0 due to our changing the default username for WPLib Box but not changing in the Composer container. This should be fixed soon in 0.17.1.

Using Composer

Composer is installed in the WPLib Box virtual machine so to use it you first SSH into WPLib Box and then run your Composer command, for example:

vagrant ssh
composer install

Implementation

Our implementation of Composer follows WPLib Box's philosophy of containerization and is thus implemented with our own Docker container.

Our composer command is itself is a Bash script which is designed to invoke the Composer container and that script can be found at /opt/box/bin/composer after you vagrant ssh into WPLib Box.

Current Limitations

  • Some commands may have issues. If you find this to be the case please contact our support to let us know so we can address sooner than later.