2017 © Pedro Peláez
 

library mobiledetect

Laravel package for MobileDetect

image

larapack/mobiledetect

Laravel package for MobileDetect

  • Wednesday, June 10, 2015
  • by marktopper
  • Repository
  • 1 Watchers
  • 3 Stars
  • 300 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

MobilDetect package for Laravel

Build Status Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

Info

Version: 1.0
Author: Mark Topper [Facebook] [Github] [Twitter]
Website: www.webman.io
Email: mark@webman.io, (*2)

Installation

First add the package to your composer by running command composer require larapack/mobiledetect 1.* or by adding the following code to composer.json followed by running the command composer update:, (*3)

{
    "require": {
        "larapack/mobiledetect": "1.*"
    }
}

Add the alias to the aliases in your app/config/app.php:, (*4)

'aliases' => array(
    // ...
    'MobileDetect' => 'Larapack\MobileDetect\MobileDetect',
)

Usage

The following examples assume you use the MobileDetect class name as alias, but the packages is namespaced so you can name the facade as you wish., (*5)

$detect = MobileDetect;

if ($detect->isMobile()){
  // this is a mobile
}
else if ($detect->isTablet()){
  // this is a tablet
}

if ($detect->isIE()){
  // this is IE -.-'
}

More examples on http://mobiledetect.net/, (*6)

The Versions

10/06 2015

dev-master

9999999-dev

Laravel package for MobileDetect

  Sources   Download

The Requires

 

by Mark Topper

10/06 2015

1.0

1.0.0.0

Laravel package for MobileDetect

  Sources   Download

The Requires

 

by Mark Topper