PHPackages                             crossknowledge/devicedetect-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. crossknowledge/devicedetect-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

crossknowledge/devicedetect-bundle
==================================

matomo/device-detector wrapped for Symfony2

6.1.0(4mo ago)816.7k4[1 issues](https://github.com/CrossKnowledge/DeviceDetectBundle/issues)[1 PRs](https://github.com/CrossKnowledge/DeviceDetectBundle/pulls)MITPHPPHP &gt;=7.2.5CI failing

Since Feb 29Pushed 4mo ago8 watchersCompare

[ Source](https://github.com/CrossKnowledge/DeviceDetectBundle)[ Packagist](https://packagist.org/packages/crossknowledge/devicedetect-bundle)[ RSS](/packages/crossknowledge-devicedetect-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (11)Versions (16)Used By (0)

[![SensioLabsInsight](https://camo.githubusercontent.com/c08291b8b5f7d69ba9a225feadecb9f141ac32ca7d65d62054c03b432de36889/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31656535636263342d646238642d343832302d613439302d3030613637336264633731332f6269672e706e67)](https://insight.sensiolabs.com/projects/1ee5cbc4-db8d-4820-a490-00a673bdc713) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/c0e422bb5c6f7ca225fd3fa68fb2d60981ebf3d25a3c7bf08417d5d3065ed939/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f43726f73734b6e6f776c656467652f44657669636544657465637442756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/CrossKnowledge/DeviceDetectBundle/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/325646553ed617c41f874c67c7a50d14724babf96c9e9f102860ab571daa8cf4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f43726f73734b6e6f776c656467652f44657669636544657465637442756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/CrossKnowledge/DeviceDetectBundle/?branch=master) [![Build Status](https://camo.githubusercontent.com/bfe6a5e1278375bb86d3e15886c389f4b89e1e3b3d2fde587d6670a73625f146/68747470733a2f2f7472617669732d63692e6f72672f43726f73734b6e6f776c656467652f44657669636544657465637442756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/CrossKnowledge/DeviceDetectBundle) [![Total Downloads](https://camo.githubusercontent.com/2e12ed66352e4e4653cbba95e4f78cc10771d2e0d5f2a98c1841e73a9357a406/68747470733a2f2f706f7365722e707567782e6f72672f63726f73736b6e6f776c656467652f6465766963656465746563742d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/crossknowledge/devicedetect-bundle) [![Latest Stable Version](https://camo.githubusercontent.com/4350453b94c431953c6273aaa199cf79e0bf92c5852874b2bfaf650314a266ee/68747470733a2f2f706f7365722e707567782e6f72672f63726f73736b6e6f776c656467652f6465766963656465746563742d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/crossknowledge/devicedetect-bundle)

CrossKnowledge DeviceDetect Bundle
==================================

[](#crossknowledge-devicedetect-bundle)

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.

Documentation
-------------

[](#documentation)

The source of the documentation is stored in the `Resources/doc/` folder

[Read the Documentation for master](https://github.com/CrossKnowledge/DeviceDetectBundle/blob/master/Resources/doc/index.md)

Installation
------------

[](#installation)

All the installation instructions are located in the documentation.

Release Notes
-------------

[](#release-notes)

V2.0 (2020-01-06)
-----------------

[](#v20-2020-01-06)

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

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

```
Resources/meta/LICENSE

```

About
-----

[](#about)

CrossKnowledgeDeviceDetectBundle is a [CrossKnowledge](https://crossknowledge.com) initiative. See also the list of [contributors](https://github.com/CrossKnowledge/DeviceDetectBundle/contributors). A couple of "distribution" (travis,readme.md, etc.) files are inspired from FriendsOfSymfony/FOSUserBundle's.

Contributions
-------------

[](#contributions)

Contributions are more than welcome. We will try to integrate them. As long as there is no BC, anything can be suggested.

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/CrossKnowledge/DeviceDetectBundle/issues).

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the [Symfony Standard Edition](https://github.com/symfony/symfony-standard)to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance72

Regular maintenance activity

Popularity28

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~403 days

Recently: every ~189 days

Total

10

Last Release

141d ago

Major Versions

1.0.1 → 2.0.02021-02-04

2.0.0 → 3.0.02022-03-24

3.0.0 → 4.0.02023-12-12

4.0.0 → 5.0.02024-01-16

5.2.0 → 6.0.02024-09-30

PHP version history (3 changes)1.0.0PHP &gt;=5.5

2.0.0PHP &gt;=7.2

6.1.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c281f01921da392f01b0d15bd1638d3d5bd1ea79dcf159736967a97d3b72aba?d=identicon)[martarello-ck](/maintainers/martarello-ck)

---

Top Contributors

[![cyqui](https://avatars.githubusercontent.com/u/651681?v=4)](https://github.com/cyqui "cyqui (12 commits)")[![fchastanet](https://avatars.githubusercontent.com/u/237869?v=4)](https://github.com/fchastanet "fchastanet (3 commits)")[![Alex-Caepio](https://avatars.githubusercontent.com/u/80680869?v=4)](https://github.com/Alex-Caepio "Alex-Caepio (2 commits)")[![maudreldek](https://avatars.githubusercontent.com/u/81565806?v=4)](https://github.com/maudreldek "maudreldek (2 commits)")[![KNTH01](https://avatars.githubusercontent.com/u/1632391?v=4)](https://github.com/KNTH01 "KNTH01 (1 commits)")[![ylelievre](https://avatars.githubusercontent.com/u/19683632?v=4)](https://github.com/ylelievre "ylelievre (1 commits)")[![mwebberck](https://avatars.githubusercontent.com/u/39924333?v=4)](https://github.com/mwebberck "mwebberck (1 commits)")[![rafaelpires815](https://avatars.githubusercontent.com/u/3921387?v=4)](https://github.com/rafaelpires815 "rafaelpires815 (1 commits)")[![smartarello](https://avatars.githubusercontent.com/u/16341570?v=4)](https://github.com/smartarello "smartarello (1 commits)")[![huaguonave](https://avatars.githubusercontent.com/u/9322112?v=4)](https://github.com/huaguonave "huaguonave (1 commits)")

---

Tags

symfonybundleSymfony2device detectmatomo device-detector

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/crossknowledge-devicedetect-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/crossknowledge-devicedetect-bundle/health.svg)](https://phpackages.com/packages/crossknowledge-devicedetect-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M380](/packages/easycorp-easyadmin-bundle)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
