A very basic user agent provider

4.0.0 2022-05-31 07:29 UTC

This package is auto-updated.

Last update: 2022-07-31 00:31:48 UTC


A very basic user agent provider

coverage build status

This library is updated once a week, every sunday.

Last Updated Date : 2022-02-01


The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		"php-extended/php-user-agent-provider-basic": "^3"

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

This library is to provide a standard and updated user agent that may be used in headers to http queries.

use PhpExtended\UserAgent\BasicUserAgentProvider;

$provider = new BasicUserAgentProvider();
$userAgent = $provider->getNextUserAgent();
echo $userAgent->__toString(); // Mozilla/5.0 ...


MIT (See license file).