library user-agent
The library provides a user agent string
mikeevstropov/user-agent
The library provides a user agent string
- Tuesday, June 27, 2017
- by mikeevstropov
- Repository
- 1 Watchers
- 0 Stars
- 46 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 5 % Grown
mikeevstropov/user-agent
The library provides a user agent string, (*1)
Installation
Add dependency mikeevstropov/user-agent, (*2)
$ composer require mikeevstropov/user-agent
Usage
<?php
use Mikeevstropov\UserAgent\UserAgent;
// Getting of a desktop user agent
$desktopUserAgent = UserAgent::getDesktopRand();
gettype($desktopUserAgent); // string
// Getting of a mobile user agent
$mobileUserAgent = UserAgent::getMobileRand();
gettype($mobileUserAgent); // string
Api Interface
-
getDesktopRand, (*3)
Get a random desktop user agent, (*4)
Returns:, (*5)
-
getMobileRand, (*6)
Get a random mobile user agent, (*7)
Returns:, (*8)
Development
Clone, (*9)
$ git clone https://github.com/mikeevstropov/user-agent
Go to project, (*10)
$ cd user-agent
Install dependencies, (*11)
$ composer install
Run the tests, (*12)
$ composer test
License
MIT, (*13)
dev-master
9999999-dev
The library provides a user agent string
Sources
Download
MIT
The Requires
The Development Requires
by
Mike Evstropov
1.0.0
1.0.0.0
The library provides a user agent string
Sources
Download
MIT
The Requires
The Development Requires
by
Mike Evstropov