Mike Griffin

Updating PHP Composer for Travis CI

I’ve been playing around with Travis CI recently with a PHP project that uses composer. Composer recently added support for PSR-4 so I needed to have the latest version installed to take advantage of this. You can update composer on Travis by putting a line in to the install section. Here’s my full .travis.yml file:

  language: php
  php:
    - 5.4
  install:
    - composer self-update
    - composer update --prefer-dist