PHPackages                             ideato/cloudfront-device-detect - 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. ideato/cloudfront-device-detect

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ideato/cloudfront-device-detect
===============================

Detect devices based on CloudFront caching headers

1.0.1(8y ago)014MITPHP

Since May 2Pushed 8y ago26 watchersCompare

[ Source](https://github.com/ideatosrl/cloudfront-device-detect)[ Packagist](https://packagist.org/packages/ideato/cloudfront-device-detect)[ RSS](/packages/ideato-cloudfront-device-detect/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Cloudfront Device Detect [![Build Status](https://camo.githubusercontent.com/bc6f3c567e8b0cbd4a70af363283425176266fa2c953929fc2f53112f1134370/68747470733a2f2f7472617669732d63692e6f72672f69646561746f73726c2f636c6f756466726f6e742d6465766963652d6465746563742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ideatosrl/cloudfront-device-detect)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#cloudfront-device-detect--)

Detect devices based on CloudFront caching headers. More info on CloudFront headers are available [here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device).

How to use
----------

[](#how-to-use)

```
$detector = new \CloudFrontDeviceDetect\Detector();

$detector->isDesktop();
$detector->isDesktopOrTablet();
$detector->isMobile();
$detector->isTablet();
$detector->isSmartTV();
$detector->isMobileOrTablet();

```

Helpers
-------

[](#helpers)

If you want to use the library with default settings you can use helper functions as follows:

```
use CloudFrontDeviceDetect;

isDesktop();
isDesktopOrTablet();
isMobile();
isTablet();
isSmartTV();
isMobileOrTablet();

```

Requirements
------------

[](#requirements)

PHP 7.1 or above

Authors
-------

[](#authors)

- Simone D'Amico
- [other contributors](https://github.com/ideatosrl/cloudfront-device-detect/graphs/contributors)

License
-------

[](#license)

The library is licensed under the MIT License

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~5 days

Total

2

Last Release

2975d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/485213?v=4)[Simone D'Amico](/maintainers/dymissy)[@dymissy](https://github.com/dymissy)

---

Top Contributors

[![dymissy](https://avatars.githubusercontent.com/u/485213?v=4)](https://github.com/dymissy "dymissy (3 commits)")

---

Tags

mobile detectcloudfront device detecttablet detector

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ideato-cloudfront-device-detect/health.svg)

```
[![Health](https://phpackages.com/badges/ideato-cloudfront-device-detect/health.svg)](https://phpackages.com/packages/ideato-cloudfront-device-detect)
```

###  Alternatives

[mobiledetect/mobiledetectlib

Mobile\_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

10.7k167.0M504](/packages/mobiledetect-mobiledetectlib)[suncat/mobile-detect-bundle

Symfony2/3/4 bundle for detect mobile devices, managing mobile view types, redirect to mobile version.

3935.4M7](/packages/suncat-mobile-detect-bundle)[tattali/mobile-detect-bundle

Symfony 5.x-7.x bundle to detect mobile devices, manage mobile view and redirect to the mobile and tablet version.

381.1M1](/packages/tattali-mobile-detect-bundle)[jbinfo/mobile-detect-service-provider

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library.

25332.9k](/packages/jbinfo-mobile-detect-service-provider)[chronon/mobile_detect

A CakePHP plugin component for identifying mobile devices using the Mobile\_Detect project.

24252.6k1](/packages/chronon-mobile-detect)

PHPackages © 2026

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