đProject structure
âââ .github # Definitions of GitHub workflows.
âââ scripts # Various utility PHP scripts for dev purposes.
âââ src
â âââ Cache
â â âââ Cache.php # PSR-16 cache array implementation.
â â âââ CacheException.php
â â âââ CacheItem.php # Cache item that holds key, value and ttl.
â âââ Exception
â â âââ MobileDetectException.php # Generic exception.
â âââ MobileDetect.php # Main library PHP code.
âââ tests
â âââ Benchmark # Performance tests.
â â âââ MobileDetectBench.php
â âââ providers
â â âââ vendors # Mobile vendors (Acer, Apple, Samsung, etc.)
â â âââ ...
â âââ bootstrap.php
â âââ CacheTest.php
â âââ MobileDetectGeneralTest.php # Unit tests
â âââ MobileDetectVersionTest.php # Unit tests for $detect->version("...")
â âââ MobileDetectWithCacheTest.php # Unit tests for caching system.
â âââ UserAgentList.inc.php
â âââ UserAgentTest.php # Integration tests using User-Agents. These prevent collisions.
â âââ phpunit.xml
â âââ ualist.json
âââ MobileDetect.json # Use this file to create a 3rd-party project.
Last updated