Today’s blog post is about the autoload-dev configuration section in the root of composer.json file. This is almost identical to the autoload section, with optional child objects such as classmap, psr-0 and psr-4, and the optional files array. The only difference is when it has effect. When the composer dump-autoload...

Composer update without PHP environment checking Hi there, welcome for another blog post on Composer. Since version 1.0.0-alpha9 composer has a new option flag available on the install and update commands. I’m talking about the --ignore-platform-reqs flag. From the changelog: Added --ignore-platform-reqs to install/update commands to install even if you...

A quick tip here, for all PHP developers out there who author packages registered on packagist.org. Add a .gitattributes file in the root of your github repository. The .gitattributes file allows you to configure several things, but the most important thing related to composer is the ability to not include...

At work I’m currently modernising a legacy project without composer into an application with less code and thus less bugs. The first composer package I required was an application container to add Dependency Injection to the project. The container I used is called orno/di, which is now moved to to...

Note: this is a repost from a blog post I did for a former employer. Nowadays I would recommend a different technique, though: GuzzlePHP version 5 asynchronous requests. Moving on to the original post: At Darwin Analytics we rely on many external APIs. This includes the Google Analytics Management API....