A very basic user agent provider

5.0.1 2022-12-18 12:23 UTC

This package is auto-updated.

Last update: 2023-05-18 13:16:31 UTC


A very basic user agent provider

coverage build status

This library is updated once a week, every sunday.

Last Updated Date : 2022-12-18


The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-user-agent-provider-basic": "^5"

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).