A PHP desktop/mobile user agent parser with Laravel support, based on Mobile Detect.
Agent is a PHP library for parsing user agent strings to detect device types, browsers, operating systems, and robots. It extends the Mobile Detect library by adding desktop support and extra functionality, making it a versatile tool for web applications that need to tailor content or analytics based on client environments.
PHP developers, particularly those using Laravel, who need to detect client device types, browsers, operating systems, and robots for content tailoring, analytics, or access control in web applications.
Developers choose Agent because it builds on the reliable Mobile Detect foundation while adding desktop detection, robot detection via Crawler-Detect, Laravel integration, and extended methods like magic methods for specific checks, offering a more comprehensive solution than basic user agent parsers.
👮 A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Extends Mobile Detect to include desktop device support, addressing a key gap in the original library for comprehensive device type checks.
Includes a service provider and facade for seamless use in Laravel projects, as detailed in the README's Laravel section.
Integrates Crawler-Detect to identify web crawlers and bots, providing out-of-the-box functionality for bot handling without extra setup.
Offers magic methods like isAndroidOS() and regex matching via match(), simplifying specific user agent checks beyond basic detection.
The version method for browser and OS is explicitly noted as 'still in beta' and might not return correct results, reducing reliability for version-dependent logic.
Relies on Mobile Detect and Crawler-Detect for core functionality, so updates and accuracy are tied to these third-party packages' maintenance and regex patterns.
Optimal features require Laravel, and it's limited to PHP, making it less versatile for projects in other languages or frameworks without Laravel integration.