Support installing composer based on PHP version
The composer download page has these links:
Latest Stable (sha256 / sha256sum / asc) for PHP 7.2+ users Latest Preview (alpha/beta/RC) (sha256 / sha256sum / asc) Latest Snapshot (sha256 / sha256sum) Latest 1.x (sha256 / sha256sum) Latest 2.x (sha256 / sha256sum / asc) Latest 2.2.x LTS (sha256 / sha256sum / asc) for PHP 5.3 to 7.1 users
It would be good if this role checked the PHP version and then, if PHP < 7.2 install Latest 2.2.x LTS and if PHP >= 7.2 install Latest Stable, however the latest version doesn't appear to work with PHP 7.3...
Edited by Chris Croome