fynduck/client-info

Get client info from request header

1.1.3 2018-12-04 12:51 UTC

This package is auto-updated.

Last update: 2024-11-05 02:04:34 UTC


README

Software License Total Downloads

Install

composer require fynduck/client-info

Usage

Add to your class

class NameClass
{
    use ClientInfo;
    
    .........
 

Get client platform: $this->getPlatform(request()->header('User-Agent'))

Get client platform version: $this->getPlatformVersion(request()->header('User-Agent'))

Get client browser name: $this->getBrowserName(request()->header('User-Agent'))

Get client browser version: $this->getBrowserVersion(request()->header('User-Agent'), 'ub') (ub browser get from method getBrowserName)

Get client refer domain: $this->getDomainReferer(request()->header('referer'))

Note: all method have default value from request()

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security-related issues, please email DummyAuthorEmail instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.