Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Device Detector Laravel Package

matomo/device-detector

PHP library to parse User-Agent strings and Browser Client Hints to detect device type (desktop/mobile/tablet/TV, etc.), client apps (browsers, media players, bots), operating systems, and hardware brand/model. Composer-installable and well tested.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables precise device-specific UX optimization (e.g., mobile-first layouts, TV interface adaptations)
  • Provides actionable analytics data for feature prioritization (e.g., declining tablet usage prompting desktop redesign)
  • Eliminates custom parsing maintenance costs; leverages Matomo's 10+ years of device pattern expertise
  • Critical for compliance (e.g., accessibility checks per device type) and ad targeting accuracy
  • Supports future-proofing against new device categories (e.g., smart displays, wearables, automotive browsers)

When to Consider This Package

  • ✅ When detecting >100 device types (including cars, wearables, consoles) is required
  • ✅ When integrating with Matomo analytics or needing client hints support
  • ✅ When needing PSR-compliant caching for high-traffic applications
  • ❌ For simple browser-only detection (use lighter alternatives like Bowser)
  • ❌ In non-PHP environments without ports (though 10+ language ports exist)
  • ❌ If your team lacks PHP expertise (though integration is trivial with Composer)

How to Pitch It (Stakeholders)

Executives: "This package gives us accurate, real-time device insights to optimize user experience across all platforms, directly impacting conversion rates and engagement. It's battle-tested by Matomo's 1M+ users, saving us 6+ months of engineering effort while ensuring compliance with evolving device standards."

Engineering: "It's a well-maintained, PSR-compliant library with robust caching and extensibility. We can integrate in <1 day, avoid reinventing the wheel, and leverage community-maintained patterns for edge cases like car browsers or smart displays."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4