承接 larastuffs/vidyo-token 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

larastuffs/vidyo-token

最新稳定版本:1.0.1

Composer 安装命令:

composer require larastuffs/vidyo-token

包简介

Generate access tokens for Vidyo.io

README 文档

README

Packagist Version 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

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

  • Accept vCard

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.

<?php
use LaraStuffs\VidyoToken\VidyoToken;

$username = 'LaraStuffs';

echo VidyoToken::generate($username);
// Result: cHJvdmlzaW9uAExhcmFTdHVmZnNAADYzNzU5...

Contributing

Contributions are more than welcome. Fork, improve and make a pull request. For bugs, ideas for improvement or other, please create an issue.

统计信息

  • 总下载量: 2.1k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-06-11