定制 kgilden/weinre-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

kgilden/weinre-bundle

Composer 安装命令:

composer require kgilden/weinre-bundle

包简介

Symfony Weinre bundle

README 文档

README

Build Status

KGWeinreBundle integrates Weinre with your Symfony2 application to enable mobile debugging.

NB! To make this work with your mobile devices you still need to install Weinre, please consult their docs on how to do that.

Installation

Add KGWeinerBundle to your app with Composer:

$ php composer.phar require kgilden/weinre-bundle:~1.0

Or add it manually to composer.json

{
    "require": {
        "kgilden/weinre-bundle": "~1.0"
    }
}

... and then install our dependencies using:

$ php composer.phar install

Finally enable the bundle in the dev environment:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
    );

    if ('dev' === $this->getEnvironment()) {
        $bundles[] = new KG\WeinreBundle\KGWeinreBundle();
    }
}

?>

Configuration

By default the bundle expects your Weinre server to run on the same machine. For example, if the application runs at 198.51.100.0, the target script is expected to be at "http://198.51.100.0:8080/target/target-script-min.js". You can override this by configuring the bundle (each value is optional):

kg_weinre:
    scheme: https        # defaults to 'http'
    host:   203.0.113.0  # defaults to server address
    port:   8000         # defaults to '8080'
    path:   /foo.js      # defaults to '/target/target-script-min.js'

Requirements

  • PHP >= 5.3.8
  • symfony/http-kernel >= 2.0.0
  • symfony/event-dispatcher >= 2.0.0
  • symfony/dependency-injecton >= 2.0.0
  • symfony/config >= 2.0.0

Contributing

See CONTRIBUTING.md file.

Running the Tests

You can run unit tests by simply executing

phpunit

Credits

Thanks to Inoryy for the project skeleton.

....

License

KGWeinreBundle is released under the MIT License. See the bundled LICENSE file for details.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-03-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固