2017 © Pedro Peláez
 

library mobile-detect-service-provider

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library.

image

jbinfo/mobile-detect-service-provider

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library.

  • Wednesday, July 29, 2015
  • by jbinfo
  • Repository
  • 1 Watchers
  • 23 Stars
  • 190,622 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 10 Forks
  • 2 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

MobileDetectServiceProvider

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library., (*1)

Fetch

The recommended way to install MobileDetectServiceProvider is through composer., (*2)

Just create a composer.json file for your project:, (*3)

{
    "require": {
        "jbinfo/mobile-detect-service-provider": "~1",
        "silex/silex": "~1"
    }
}

Register

use Silex\Application;
use Binfo\Silex\MobileDetectServiceProvider;

$app = new Application();

$app->register(new MobileDetectServiceProvider());

Usage

if ($app["mobile_detect"]->isMobile()) {
    echo "Mobile device";

} else {
    echo "Desktop device";
}
echo $app["mobile_detect"]->version('iPad');

For more informations check the website of Mobile-Detect library., (*4)

Bitdeli Badge, (*5)

The Versions

29/07 2015

dev-master

9999999-dev https://github.com/jbinfo/MobileDetectServiceProvider

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library.

  Sources   Download

MIT

The Requires

 

silex mobile mobile detect php mobile detect

19/11 2013

v1.1.0

1.1.0.0 https://github.com/jbinfo/MobileDetectServiceProvider

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library.

  Sources   Download

MIT

The Requires

 

silex mobile mobile detect php mobile detect

02/04 2013

v1.0.0

1.0.0.0 https://github.com/binfo/MobileDetectServiceProvider

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library.

  Sources   Download

MIT

The Requires

 

silex mobile mobile detect php mobile detect