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
其他信息
- 授权协议: MIT
- 更新时间: 2013-01-28