This library requires PHP 8.1+.
Run
composer require mimmi20/device-detector-factory
You'll need to add configuration and register the services you'd like to use. There are number of ways to do that
but the recommended way is to create a new config file config/autoload/detector.config.php
config/autoload/detector.config.php
<?php
return [
'device-detector' => [
'discard-bot-information' => true, // Optional: defaults to false
'skip-bot-detection' => true, // Optional: defaults to false
'cache' => 'data-cache', // Optional, may be a string or an instance of \Laminas\Cache\Storage\StorageInterface
],
];
This package is licensed using the MIT License.
Please have a look at LICENSE.md
.