I need to use Mobile Detect class in a project.
So I add the file to lib folder and include the path to functions.php file.
But when I try to call the class
$detect = new Mobile_Detect;, this error appear:
Fatal error: Class ‘Roots\Sage\Extras\Mobile_Detect’ not found in …lib/extras.php on line 234
I try to add
namespace Roots\Sage\Mobile_Detect to class file and
use Roots\Sage\Mobile_Detect; to extras.php file with no success.