Chapter 1. Download

We distribute a PHP Archive (PHAR) that contains all required dependencies of PHP CompatInfo bundled in a single file.

Download the latest version

Make it executable, and put it into your $PATH.

$ chmod +x phpcompatinfo-4.1.0.phar
$ mv phpcompatinfo-4.1.0.phar /usr/local/bin/phpcompatinfo

$ phpcompatinfo --version

You can also immediately use the PHAR after you have downloaded it.

$ wget http://bartlett.laurent-laville.org/get/phpcompatinfo-4.1.0.phar
$ php phpcompatinfo-4.1.0.phar --version

With both methods then you have this output :

phpCompatInfo version 4.1.0 DB built Apr 16 2015 09:24:43 CEST

Other alternative installations are possible. Please refer to the Chapter 7, Installation for details on how to do this.