openxtrem / browscap
Standalone replacement for php's native get_browser() function
2.1.3
2023-12-08 15:33 UTC
Requires
- php: 8.1.* | 8.2.*
- browscap/browscap-php: 7.2.*
- roave/doctrine-simplecache: 2.7.*
Requires (Dev)
- phpunit/phpunit: 9.5.*
README
About
Requires browscap/browscap-php packages, convert PHP_BrowscapINI into cache folder.
Contains browscap factory :
$bc = \OxBrowscap\BrowscapFactory::create(); $result = $bc->getBrowser();
How to update ?
git clone project
composer update
php src/update.php
git add .
git commit -m "XXX"
git push
git tag X.X.X
git push --tags
How to tests ?
vendor/bin/phpunit -c phpunit.xml
Need help ?
vendor/bin/browscap-php list
Issues
Add gitlab-ci.yml to auto update cache on schedules pipelines.