2017 © Pedro Peláez
 

library laratok

Laravel package for OpenTok

image

vincenzogambino/laratok

Laravel package for OpenTok

  • Tuesday, November 15, 2016
  • by VincenzoGambino
  • Repository
  • 1 Watchers
  • 1 Stars
  • 21 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

LaraTok

Laravel package for OpenTok., (*1)

Installation

Composer

composer require vincenzogambino/laratok

Open your config/app.php and add the following to the providers array:

'providers' => [

    /*
     * Laravel Framework Service Providers...
     */
    Illuminate\Auth\AuthServiceProvider::class,
    ...

    /**
     * Third Party Service Providers...
     */
    VincenzoGambino\LaraTok\LaraTokServiceProvider::class,

],

In the same config/app.php and add the following to the aliases array:

'aliases' => [

        'App' => Illuminate\Support\Facades\App::class,
        'Artisan' => Illuminate\Support\Facades\Artisan::class,
        ...
        'LaraTok' => VincenzoGambino\LaraTok\Facade\LaraTokFacade::class,

    ],

Run the command below to publish the package config file config/laratok.php:

php artisan vendor:publish

Create the database:

php artisan migrate

Set configuration on config/laratok.php:

Minimum configuration: - api_key - api_secret, (*2)

You must have a tokbox account in order to have the parameteres above., (*3)

Admin Pages:

  • /laratok

From this page you can see existing tokens grouped by sessions., (*4)

Example Pages:

  • /laratok/examples

Pages showing example session and token. If example session and token does not exist it can be generated from there., (*5)

  • /laratok/examples/simple

Simple video chat example, (*6)

  • /laratok/examples/signaling

Example page with videochat and messaging., (*7)

Usage:

Generate Session and persist it in the database:

$latarok = new Laratok();
$laratok->generateSession();

Generate Token and persist it in the database:

$latarok = new Laratok();
$laratok->generateToken();

Usage:

$laratok = new LaraTok();
$session_id = $laratok->generateSession();
$token_id = $laratok->generateToken($session_id);

return view('YOUR_VIEW', compact('session_id', 'token_id'));

OpenTok documentation:

https://tokbox.com/developer/, (*8)

The Versions

15/11 2016

dev-master

9999999-dev https://github.com/VincenzoGambino/LaraTok

Laravel package for OpenTok

  Sources   Download

MIT

The Requires

 

by Vincenzo Gambino

laravel opentok video streaming laratok video chat vincenzo gambino

15/11 2016

0.4

0.4.0.0 https://github.com/VincenzoGambino/LaraTok

Laravel package for OpenTok

  Sources   Download

MIT

The Requires

 

by Vincenzo Gambino

laravel opentok video streaming laratok video chat vincenzo gambino

15/11 2016

dev-develop

dev-develop https://github.com/VincenzoGambino/LaraTok

Laravel package for OpenTok

  Sources   Download

MIT

The Requires

 

by Vincenzo Gambino

laravel opentok video streaming laratok video chat vincenzo gambino

10/11 2016

0.3

0.3.0.0 https://github.com/VincenzoGambino/LaraTok

Laravel package for OpenTok

  Sources   Download

MIT

The Requires

 

by Vincenzo Gambino

laravel opentok video streaming laratok video chat vincenzo gambino

10/11 2016

0.2

0.2.0.0 https://github.com/VincenzoGambino/LaraTok

Laravel package for OpenTok

  Sources   Download

MIT

The Requires

 

by Vincenzo Gambino

laravel opentok video streaming laratok video chat vincenzo gambino

09/11 2016

0.1

0.1.0.0 https://github.com/VincenzoGambino/LaraTok

Laravel package for OpenTok

  Sources   Download

MIT

The Requires

 

by Vincenzo Gambino

laravel opentok video streaming laratok video chat vincenzo gambino