PHP Class UserAgentParser\Provider\Http\UserAgentApiCom

See also: https://useragentapi.com/docs
Author: Martin Keckeis ([email protected])
Inheritance: extends AbstractHttpProvider
Mostrar archivo Open project: ThaDafinser/UserAgentParser Class Usage Examples

Protected Properties

Property Type Description
$detectionCapabilities
$homepage string Homepage of the provider
$name string Name of the provider

Public Methods

Method Description
__construct ( Client $client, $apiKey )
getVersion ( )
parse ( $userAgent, array $headers = [] )

Protected Methods

Method Description
getResult ( string $userAgent, array $headers ) : stdClass

Private Methods

Method Description
hydrateBot ( Bot $bot, stdClass $resultRaw )
hydrateBrowser ( Browser $browser, stdClass $resultRaw )
hydrateDevice ( Device $device, stdClass $resultRaw )
hydrateRenderingEngine ( RenderingEngine $engine, stdClass $resultRaw )
isBot ( stdClass $resultRaw ) : boolean

Method Details

__construct() public method

public __construct ( Client $client, $apiKey )
$client GuzzleHttp\Client

getResult() protected method

protected getResult ( string $userAgent, array $headers ) : stdClass
$userAgent string
$headers array
return stdClass

getVersion() public method

public getVersion ( )

parse() public method

public parse ( $userAgent, array $headers = [] )
$headers array

Property Details

$detectionCapabilities protected_oe property

protected $detectionCapabilities

$homepage protected_oe property

Homepage of the provider
protected string $homepage
return string

$name protected_oe property

Name of the provider
protected string $name
return string