The PHP Versions library provides a set of useful tools for working with version numbers that you can quickly drop into your own project to save you time and effort.
We're still working out what the library's API should look like. Once that's stable, we'll be able to move to a v1.0 release very quickly.
Add this to your composer.json
file:
{
"require": {
"ganbarodigital/php-versions": "dev-develop"
}
}
and then run composer update
.