Browserslist is a tool that reports on current browsers based on data pulled from caniuse's browser statistics. This project is a PHP port of the JS library of the same name.
Via Composer
$ composer require buttress/browserslist
$listFactory = new BrowserslistFactory();
$browserslist = $listFactory->createWithData();
// Get the last version of every browser AND browsers with > 10% usage
$browsers = $browserslist('last 1 version, > 10%');
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.