$ php-matrix "^7 || ^8"
{
"constraint": "^7 || ^8",
"versions": [
"7.0",
"7.1",
"7.2",
"7.3",
"7.4",
"8.0",
"8.1",
"8.2",
"8.3",
"8.4"
],
"lowest": "7.0",
"highest": "8.4"
}
$ php-matrix --mode=full "~7.4.29 || ~8.1.29"
{
"constraint": "~7.4.29 || ~8.1.29",
"versions": [
"7.4.29",
"7.4.30",
"7.4.32",
"7.4.33",
"8.1.29",
"8.1.30",
"8.1.31"
],
"lowest": "7.4.29",
"highest": "8.1.31"
}
$ php-matrix --mode=minor-only ">=7.2 <8.4"
{
"constraint": ">=7.2 <8.4",
"versions": [
"7.2",
"7.3",
"7.4",
"8.0",
"8.1",
"8.2",
"8.3"
],
"lowest": "7.2",
"highest": "8.3"
}Available modes:
minor-only(default): ReportMAJOR.MINORversions onlyfull: Report all satisfying versions inMAJOR.MINOR.PATCHformat
Available sources:
auto(default): Useofflineinminor-onlymode. Otherwise, fetch from php.netphp.net: Fetch releases information from php.netoffline: Use hardcoded releases information
composer global require typisttech/php-matrix
php-matrix --helpcomposer create-project typisttech/php-matrix
cd php-matrix
./bin/php-matrix --helpPHP Matrix is a Typist Tech project and
maintained by Tang Rufus, freelance developer for hire.
Full list of contributors can be found on GitHub.
This project is a free software distributed under the terms of the MIT license. For the full license, see LICENSE.
Feedbacks / bug reports / pull requests are welcome.