buttress / browserslist
PHP Port of js browserslist
dev-master / 1.0.x-dev
2016-09-27 17:47 UTC
Requires
- php: ~5.6|~7.0
- tightenco/collect: ^5.3
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ^2.3
This package is auto-updated.
Last update: 2024-10-29 04:42:04 UTC
README
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.
Install
Via Composer
$ composer require buttress/browserslist
Usage
$listFactory = new BrowserslistFactory(); $browserslist = $listFactory->createWithData(); // Get the last version of every browser AND browsers with > 10% usage $browsers = $browserslist('last 1 version, > 10%');
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email korvinszanto@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.