The recommended way to install this library is through composer. If you don’t know yet what is composer, have a look on introduction.
composer require bartlett/php-compatinfo