php-extended / php-useragent-aruljohn-api
This package is abandoned and no longer maintained.
The author suggests using the php-extended/php-api-com-aruljohn-object package instead.
A php api wrapper around the aruljohn user agent string database
3.1.7
2021-01-31 23:24 UTC
Requires
- php: >=7.1
- php-extended/polyfill-php80-stringable: >=1
- psr/http-client: ^1
- psr/http-factory: ^1
README
A php api wrapper around the aruljohn user agent string database.
Installation
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-useragent-aruljohn-api": "^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
You may use this library the following way :
use PhpExtended\UserAgent\UserAgentArulJohnEndpoint;
/* @var $client \Psr\Http\Client\ClientInterface */
/* @var $uriFactory \Psr\Http\Message\UriFactory */
/* @var $requestFactory \Psr\Http\Message\RequestFactory */
$endpoint = new UserAgentArulJohnEndpoint($client, $uriFactory, $requestFactory);
$userAgents = $endpoint->getUserAgentIterator(); // returns \Iterator<string> the list of user agent values
License
MIT (See license file).