openxtrem / browscap
Standalone replacement for php's native get_browser() function
4.0.3
2026-03-23 17:09 UTC
Requires
- php: 8.3.* | 8.4.*
- browscap/browscap-php: ^7.4
- openxtrem/cache: ^6.0
Requires (Dev)
- backendtea/phpstan-multiple-error-formatter: ^1.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.5
This package is auto-updated.
Last update: 2026-03-23 16:17:16 UTC
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.