承接 exs/silex-mobility-detector-light-provider 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

exs/silex-mobility-detector-light-provider

最新稳定版本:v1.0.0

Composer 安装命令:

composer require exs/silex-mobility-detector-light-provider

包简介

Detect mobile device

README 文档

README

Simple regex methods used to determine if the useragent comes from a mobile, tablet or desktop device.

Installing the MobilityDetectorLightProvider in a Silex project

The installation process is actually very simple. Set up a Silex project with Composer.

Once the new project is set up, open the composer.json file and add the exs/silex-mobility-detector-light-provider as a dependency:

//composer.json
//...
"require": {
        //other bundles
        "exs/silex-mobility-detector-light-provider": "1.0.*@dev" 

Or you could just add it via the command line:

$ composer.phar require exs/silex-mobility-detector-light-provider: v1.0.*

Save the file and have composer update the project via the command line:

php composer.phar update

Composer will now update all dependencies and you should see our bundle in the list:

  - Installing exs/silex-mobility-detector-light-provider (dev-master 463eb20)
    Cloning 463eb2081e7205e7556f6f65224c6ba9631e070a

Update the app.php to include our provider:

//app.php
//...
$app->register(new \EXS\MobilityDetectorLightProvider\Providers\MobilityDetectorLightProvider());

MobilityDetectorLightProvider is ready to use, inject the service where you need it.

$container['exs.serv.mobility.detector.light'];

Contributing

Anyone and everyone is welcome to contribute.

If you have any questions or suggestions please let us know.

统计信息

  • 总下载量: 312
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 11
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-30