定制 philharmonie/laravel-zoom-meetings 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

philharmonie/laravel-zoom-meetings

最新稳定版本:v1.0.0

Composer 安装命令:

composer require philharmonie/laravel-zoom-meetings

包简介

Create Zoom Meetings

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

With this package you can create Zoom meetings from your Laravel application using Server-To-Server OAuth.

Installation

You can install the package via composer:

composer require philharmonie/laravel-zoom-meetings

You can publish the config file with:

php artisan vendor:publish --tag="zoom-meetings-config"

This is the contents of the published config file:

return [
    'account_id' => env('ZOOM_ACCOUNT_ID'),
    'client_id' => env('ZOOM_CLIENT_ID'),
    'client_secret' => env('ZOOM_CLIENT_SECRET'),
    'base_url' => 'https://api.zoom.us/v2/',
    'token_url' => 'https://zoom.us/oauth/token',
];

Preparing your Zoom account

Create a Server-to-Server OAuth app in your Zoom account following this instruction: https://developers.zoom.us/docs/internal-apps/create/. You will need the user:read:admin meeting:write:admin scopes.

Save the Account ID, Client ID and Client Secret in your .env file.

Usage

$access_token = Auth::getToken();

$meeting = Meeting::setAccessToken($access_token)->create([
    'topic' => 'Test Meeting',
    'type' => 2,
    'start_time' => now()->addDay()->startOfHour()->format('Y-m-d\TH:i:s'),
    'duration' => 60,
], 'mail@example.com');

See the test cases for more usage examples.

Testing

cp phpunit.xml.dist phpunit.xml

Update the environment variables in phpunit.xml:

<php>
    <env name="ZOOM_ACCOUNT_ID" value=""/>
    <env name="ZOOM_CLIENT_ID" value=""/>
    <env name="ZOOM_CLIENT_SECRET" value=""/>
    <env name="ZOOM_EMAIL_ACCOUNT" value=""/>
</php>

Run

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover any security-related issues, please email phil@harmonie.media instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-03