PHPackages                             vincenzogambino/laratok - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. vincenzogambino/laratok

ActiveLibrary

vincenzogambino/laratok
=======================

Laravel package for OpenTok

0.4(9y ago)1703[1 issues](https://github.com/VincenzoGambino/LaraTok/issues)MITHTMLPHP &gt;=5.4.0

Since Nov 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/VincenzoGambino/LaraTok)[ Packagist](https://packagist.org/packages/vincenzogambino/laratok)[ Docs](https://github.com/VincenzoGambino/LaraTok)[ RSS](/packages/vincenzogambino-laratok/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (6)Versions (6)Used By (0)

LaraTok
=======

[](#laratok)

Laravel package for OpenTok.

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require vincenzogambino/laratok

```

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

[](#open-your-configappphp-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:

[](#in-the-same-configappphp-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:

[](#run-the-command-below-to-publish-the-package-config-file-configlaratokphp)

```
php artisan vendor:publish

```

### Create the database:

[](#create-the-database)

```
php artisan migrate

```

### Set configuration on config/laratok.php:

[](#set-configuration-on-configlaratokphp)

Minimum configuration:

- api\_key
- api\_secret

You must have a tokbox account in order to have the parameteres above.

Admin Pages:
------------

[](#admin-pages)

- /laratok

From this page you can see existing tokens grouped by sessions.

Example Pages:
--------------

[](#example-pages)

- /laratok/examples

Pages showing example session and token. If example session and token does not exist it can be generated from there.

- /laratok/examples/simple

Simple video chat example

- /laratok/examples/signaling

Example page with videochat and messaging.

Usage:
======

[](#usage)

### Generate Session and persist it in the database:

[](#generate-session-and-persist-it-in-the-database)

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

```

### Generate Token and persist it in the database:

[](#generate-token-and-persist-it-in-the-database)

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

```

Usage:
------

[](#usage-1)

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

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

```

OpenTok documentation:
----------------------

[](#opentok-documentation)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

4

Last Release

3465d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50f48cc2de21be78eb8eae7b30825eaf9e0e3f27503fa77e72dec925ae829ff2?d=identicon)[VincenzoGambino](/maintainers/VincenzoGambino)

---

Top Contributors

[![VincenzoGambino](https://avatars.githubusercontent.com/u/2650666?v=4)](https://github.com/VincenzoGambino "VincenzoGambino (21 commits)")

---

Tags

laravelOpenTokvideo streamingvideo-chatlaratokvincenzo gambino

### Embed Badge

![Health badge](/badges/vincenzogambino-laratok/health.svg)

```
[![Health](https://phpackages.com/badges/vincenzogambino-laratok/health.svg)](https://phpackages.com/packages/vincenzogambino-laratok)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
