The CrossKnowledge/DeviceDetectBundle wraps matomo/device-detector with semantic D.I. configuration and twig helpers.
Features:
- Configurable cache storage
- Options to describe the DeviceDetector (discard_bot_information and skip_bot_detection)
- Twig helpers: is_tablet(), is_desktop(), is_mobile()
More will likely come depending on our needs and external suggestions.
The source of the documentation is stored in the Resources/doc/
folder
Read the Documentation for master
All the installation instructions are located in the documentation.
Change underlying library from piwik/device-detector to matomo/device-detector DeviceDetector lazy loading Minimum php version is 7.2 Upgraded phpunit version to 8 hhvm no more supported
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
CrossKnowledgeDeviceDetectBundle is a CrossKnowledge initiative. See also the list of contributors. A couple of "distribution" (travis,readme.md, etc.) files are inspired from FriendsOfSymfony/FOSUserBundle's.
Contributions are more than welcome. We will try to integrate them. As long as there is no BC, anything can be suggested.
Issues and feature requests are tracked in the Github issue tracker.
When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.