ideato/cloudfront-device-detect
Composer 安装命令:
composer require ideato/cloudfront-device-detect
包简介
Detect devices based on CloudFront caching headers
README 文档
README
Detect devices based on CloudFront caching headers. More info on CloudFront headers are available here.
How to use
$detector = new \CloudFrontDeviceDetect\Detector();
$detector->isDesktop();
$detector->isDesktopOrTablet();
$detector->isMobile();
$detector->isTablet();
$detector->isSmartTV();
$detector->isMobileOrTablet();
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
PHP 7.1 or above
Authors
- Simone D'Amico sd@ideato.it
- other contributors
License
The library is licensed under the MIT License
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-02