fynduck / client-info
Get client info from request header
Installs: 73
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
Requires (Dev)
- orchestra/testbench: ^3.6
README
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.