定制 joos/open-tok-bundle 二次开发

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

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

joos/open-tok-bundle

Composer 安装命令:

composer require joos/open-tok-bundle

包简介

Symfony2 bundle to facilitate the use of TokBox OpenTok

README 文档

README

The JoosOpenTokBundle is a simple and easy way to use TokBox OpenTok in Symfony2 applications

Installation

composer.json

"require": {
    ...
    "joos/open-tok-bundle": "2.3.x-dev",
    "opentok/opentok": "dev-master",
    ...
}

app/AppKernel.php

public function registerBundles()
{
    return array(
        //...
        new Joos\OpenTokBundle\JoosOpenTokBundle(),
        //...
    );
    ...

Configuration

app/config/config.yml

# Joos OpenTok configuration
joos_open_tok:
    class: OpenTokSDK
    key: #your OpenTok key
    secret: #your OpenTok secret

Service(s)

Get the OpenTokSDK object to work with:

$this->get('joos_open_tok');

Usage example

$open_tok = $this->get('joos_open_tok');

//Creating Sessions
$session = $open_tok->createSession($_SERVER["REMOTE_ADDR"]);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-01-28