diego182/mobile-detect
Symfony bundle wrapper for Mobile Detect. Provides auto-configuration and autowiring so you can inject a MobileDetect service into your app to detect mobile/tablet devices from the user agent with minimal setup.
This library aims to give a thin wrapper for Mobile Detect library, providing library auto configuration for autowire the class into your project.
This way you could just auto wire the class into your services as follows:
<?php
namespace App\Service;
use diego182\MobileDetectBundle\Service\MobileDetect;
class MyService
{
private MobileDetect $mobileDetect;
public function __construct(MobileDetect $mobileDetect) {
$this->mobileDetect = $mobileDetect;
}
}
How can I help you explore Laravel packages today?