joos / open-tok-bundle
Symfony2 bundle to facilitate the use of TokBox OpenTok
Installs: 1 123
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 1
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.3.2
- opentok/opentok: dev-master
Requires (Dev)
- symfony/framework-bundle: 2.3.*
- symfony/security-bundle: 2.3.*
This package is not auto-updated.
Last update: 2019-01-24 10:38:28 UTC
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"]);