Download the PHP package colonizator1/tv-detector without Composer
On this page you can find all versions of the php package colonizator1/tv-detector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download colonizator1/tv-detector
More information about colonizator1/tv-detector
Files in colonizator1/tv-detector
Download colonizator1/tv-detector
More information about colonizator1/tv-detector
Files in colonizator1/tv-detector
Vendor colonizator1
Package tv-detector
Short Description Lightweight TV user-agent detector.
License MIT
Package tv-detector
Short Description Lightweight TV user-agent detector.
License MIT
Please rate this library. Is it a good library?
Informations about the package tv-detector
TV Detector
Lightweight TV user-agent detector extracted from matomo/device-detector brand-level regexes. Uses a single preg_match() instead of the full DeviceDetector pipeline.
Installation
Usage
API
TvDetector::isTV(string $userAgent): bool— returnstrueif the user agent matches any known TV signatures.TvDetector::isAndroidTV(string $userAgent): bool— returnstrueif the user agent looks like Android TV (including OEM skins).
Notes
- Patterns are derived from the Matomo DeviceDetector regex sets (televisions and shell TV), limited to brand-level detection.
- Empty user agents return
false.
License
MIT
All versions of tv-detector with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.6 || ^7.0 || ^8.0
The package colonizator1/tv-detector contains the following files
Loading the files please wait ...