PHP User Agent is available through Packagist via Composer.
Add to your local project
composer require --dev 'boomerang/boomerang'
Install globally
composer global require 'boomerang/boomerang'