PHPackages                             larastuffs/vidyo-token - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. larastuffs/vidyo-token

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

larastuffs/vidyo-token
======================

Generate access tokens for Vidyo.io

1.0.1(5y ago)12.1kMITPHPPHP &gt;=7.2.0

Since Jun 11Pushed 5y ago2 watchersCompare

[ Source](https://github.com/LaraStuffs/vidyo-token)[ Packagist](https://packagist.org/packages/larastuffs/vidyo-token)[ Docs](https://github.com/LaraStuffs/vidyo-token)[ RSS](/packages/larastuffs-vidyo-token/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

vidyo-token
===========

[](#vidyo-token)

[![Packagist Version](https://camo.githubusercontent.com/a114897b304ee01a2fd487e5866c23f4a7967122fb117e5a553b6df9fb0eda3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172617374756666732f766964796f2d746f6b656e)](https://packagist.org/packages/larastuffs/vidyo-token)[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/LaraStuffs/vidyo-token/blob/master/LICENSE)

Generate access tokens for Vidyo.io.

> To connect to Vidyo.io, the VidyoClient SDK needs to pass a token. A token is a short-lived authentication credential that grants access to the Vidyo.io service on behalf of the developer to a specific user. When an endpoint requests access to the service, your application backend should generate a token and pass it on to the client application.

Contents
--------

[](#contents)

- [Installation and setup](#installation-and-setup)
- [Usage](#usage)
- [Contributing](#contributing)

Installation and setup
----------------------

[](#installation-and-setup)

You can install this package via composer using:

```
composer require larastuffs/vidyo-token
```

To publish the config file to `config/vidyo.php` run:

```
php artisan vendor:publish --provider="LaraStuffs\VidyoToken\VidyoTokenServiceProvider"
```

Go to `config/vidyo.php` and change the value of `developer_key` and `app_id` for your developer key and application ID.

To do list
----------

[](#to-do-list)

- Accept vCard

Usage
-----

[](#usage)

You can use the static method `LaraStuffs\VidyoToken\VidyoToken::generate(string $username = null, int $seconds = null): string` to generate the token. If the arguments are `null`, the method gets the values defined in `config/vidyo.php`.

```
