buttress/browserslist

PHP Port of js browserslist

dev-master / 1.0.x-dev 2016-09-27 17:47 UTC

This package is auto-updated.

Last update: 2024-10-29 04:42:04 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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.