joos/open-tok-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

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

dev-master / 2.3.x-dev 2013-07-03 17:23 UTC

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"]);