2017 © Pedro Peláez
 

library browscap-php-unsorted

Standalone replacement for php's native get_browser() function

image

mimmi20/browscap-php-unsorted

Standalone replacement for php's native get_browser() function

  • Wednesday, March 14, 2018
  • by mimmi20
  • Repository
  • 1 Watchers
  • 0 Stars
  • 81 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Browser Capabilities PHP Project

This is a userland replacement for PHP's native get_browser() function, which is officially supported by the Browser Capabilities Project., (*1)

Forked from https://github.com/GaretJax/phpbrowscap., (*2)

Build Status Code Coverage Scrutinizer Quality Score, (*3)

Installation

Run the command below to install via Composer, (*4)

composer require browscap/browscap-php

Then you may identify the current user agent like so:, (*5)

use phpbrowscap\Browscap;

$browscap = new Browscap();
$info = $browscap->getBrowser();

It is highly recommended that you disable the auto update functionality, and create a background cron script to perform the update. This way, you do not make another request every time. So your usual usage would look like this:, (*6)

use phpbrowscap\Browscap;

$browscap = new Browscap($cacheDir);
$browscap->doAutoUpdate = false;
$info = $browscap->getBrowser();

And you could write a cron script such as this, to run once a day:, (*7)

use phpbrowscap\Browscap;

$browscap = new Browscap($cacheDir);
$browscap->updateCache();

Issues and feature requests

Please report your issues and ask for new features on the GitHub Issue Tracker at https://github.com/browscap/browscap-php/issues, (*8)

Please report incorrectly identified User Agents and browser detect in the browscap.ini file here: https://github.com/browscap/browscap/issues, (*9)

The Versions

14/03 2018

dev-master

9999999-dev https://github.com/mimmi20/browscap-unsorted

Standalone replacement for php's native get_browser() function

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Jonathan Stoppani
by Thomas Mueller

browser user agent capabilities get_browser

13/03 2018

dev-dependabot/composer/phpunit/phpunit-tw-4.8.36or-tw-5.7.26or-tw-6.5.0|tw-7.0.0

dev-dependabot/composer/phpunit/phpunit-tw-4.8.36or-tw-5.7.26or-tw-6.5.0|tw-7.0.0 https://github.com/mimmi20/browscap-unsorted

Standalone replacement for php's native get_browser() function

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Jonathan Stoppani
by Thomas Mueller

browser user agent capabilities get_browser

04/01 2018

dev-fix-tests

dev-fix-tests https://github.com/mimmi20/browscap-unsorted

Standalone replacement for php's native get_browser() function

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Jonathan Stoppani
by Thomas Mueller

browser user agent capabilities get_browser