fork of https://bitbucket.org/xrstf/composer-php52