diaa/laravel-zoom-meeting 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

diaa/laravel-zoom-meeting

最新稳定版本:v1.1.0

Composer 安装命令:

composer require diaa/laravel-zoom-meeting

包简介

sample package for laravel applications to integrate with Zoom Oauth application

README 文档

README

sample package for laravel applications to integrate with Zoom Oauth application.

Installation

Install via composer

  composer require diaa/laravel-zoom-meeting

run migration

php artisan migrate

run vendor publish

 php artisan vendor:publish --tag="zoomconfig"

Environment Variables

To run this package, you will need to add the following environment variables to your .env file

ZOOM_CLIENT_ID

ZOOM_CLIENT_SECRET

ZOOM_REDIRECT_URL

ZOOM_BASE_URL

How to use ?

generate an authorization URL where a user can click and complete the authorization:

-create a blade file that contains a link to complete the authorization

$url = "https://zoom.us/oauth/authorize?response_type=code&client_id=".CLIENT_ID."&redirect_uri=".REDIRECT_URI.";
?>
 
<a href="{{$url}}">Zoom Authorization</a>
  • Run the above file on the browser, click on the ‘Zoom Authorization’ link and complete the authorization.
  • you should see a success message and the access token would store in your zoom_oauths table.

Redirect Url:

  • create a Route in web routes
use ZoomService\Zoom;
Route::post('/callback',function(){
  return Zoom::zoomCallback();
});

Create Zoom Meeting

- this function to create a zoom meeting , just pass meeting data and settings params:
use ZoomService\Zoom;
$meetingData = [
  'topic' =>  'General Talk', // topic
            'type'            =>  2,
            'start_time'    => date('Y-m-dTh:i:00') . 'Z', // will start now
            'duration'        =>  40,
            'password'        =>  mt_rand(), // random password
            // 'timezone'		=> 'Africa/Cairo',
            'settings'        => [
                'host_video'            => false,
                'participant_video'        => true,
                'cn_meeting'            => false,
                'in_meeting'            => false,
                'join_before_host'        => true,
                'mute_upon_entry'        => true,
                'watermark'                => false,
                'use_pmi'                => false,
                'approval_type'            => 1,
                'registration_type'        => 1,
                'audio'                    => 'voip',
                'auto_recording'        => 'none',
                'waiting_room'            => false
            ]
];
Zoom::createMeeting($meetingData);

-- it will return a meeting link to join via it.

License

The Http Client Package is open-sourced software licensed under the MIT license

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-02