arcanedev/agent
A lightweight PHP package for detecting the browser, operating system, device type, and bot status behind incoming requests by parsing user-agent strings, with a simple API that fits cleanly into Laravel applications.
Adopt when:
Look elsewhere when:
To executives: This is a small, no-infrastructure dependency that makes our traffic and personalization data more trustworthy, and its new release removes a blocker on our PHP 8 upgrade. Cost is a composer dependency; the alternative is owning and maintaining a parser ourselves, which is recurring engineering cost with no differentiation.
To engineering: Version 9.2.0 adds PHP 8.0 support and simplifies the detector parsing internals — lower complexity, fewer places for edge-case regressions, and it clears our upgrade path. Adoption is a composer require plus a thin wrapper; no services, no credentials, no operational surface. Recommend pinning the version and adding a smoke test that asserts classification on a small fixture set of representative user agents, so a future release that changes parsing behavior fails loudly rather than silently skewing metrics.
Ask: Approve adoption at the next dependency review, with a follow-up check on detector-data refresh cadence and forward support for PHP 8.2+ before we treat it as a long-term dependency rather than a tactical one.
How can I help you explore Laravel packages today?