elfsundae / agent
A PHP mobile/desktop User-Agent parser, with support for Laravel.
3.0.0
2018-02-06 22:17 UTC
Requires
- php: >=5.6.4
- illuminate/support: ~5.0
- jenssegers/agent: ~2.6
Requires (Dev)
- mockery/mockery: ~1.0
- phpunit/phpunit: ~5.7|~6.0|~7.0
README
A PHP mobile/desktop User-Agent parser, with support for Laravel, based on jenssegers/agent
which based on the Mobile Detect.
Installation
$ composer require elfsundae/agent
Laravel (Optional)
If your application runs on Lumen, or on earlier Laravel than v5.5 which does not support package discovery, you need to register the service provider manually:
ElfSundae\Agent\AgentServiceProvider::class,
And add the Agent
facade alias:
'Agent' => ElfSundae\Agent\Facades\Agent::class,
License
This package is open-sourced software licensed under the MIT License.