espresso-dev/zoom-php
Composer 安装命令:
composer require espresso-dev/zoom-php
包简介
A simple PHP class for accessing the Zoom API
README 文档
README
A simple PHP wrapper for the Zoom API
Composer package available.
Requirements
- PHP 7 or higher
- cURL
- Zoom Developer Account
- Zoom App
Get started
To use the Zoom API, you will need to register a Zoom app. Follow the Create an OAuth App guide.
Installation
I strongly advice using Composer to keep updates as smooth as possible.
$ composer require espresso-dev/zoom-php
Initialize the class
use EspressoDev\Zoom\Zoom; $zoom = new Zoom([ 'appId' => 'YOUR_APP_ID', 'appSecret' => 'YOUR_APP_SECRET', 'redirectUri' => 'YOUR_APP_REDIRECT_URI' ]); echo "<a href='{$zoom->getLoginUrl()}'>Login with Zoom</a>";
Authenticate user (OAuth2)
// Get the OAuth callback code $code = $_GET['code']; // Get the access token (valid for 1 hour) and refresh token $token = $zoom->getOAuthToken($code); echo 'Your token is: ' . $token->access_token; echo 'Your refresh token is: ' . $token->refresh_token;
Get users scheduled meetings
// Set user access token $zoom->setAccessToken($token); // Get the users scheduled meetins $meetings = $zoom->getUserMeetings('me', 'scheduled'); echo '<pre>'; print_r($meetings); echo '<pre>';
All methods return the API data as json_decode() - so you can directly access the data.
Available methods
Setup Zoom
new Zoom(<array>/<string>);
array if you want to perform oAuth:
new Zoom([ 'appId' => 'YOUR_APP_ID', 'appSecret' => 'YOUR_APP_SECRET', 'redirectUri' => 'YOUR_APP_REDIRECT_URI' ]);
string once you have a token and just want to return read-only data:
new Zoom('ACCESS_TOKEN');
Get login URL
getLoginUrl(<string>)
getLoginUrl( 'state' );
Get OAuth token (Short lived valid for 1 hour)
getOAuthToken($code)
Refresh access token for another 1 hour and get updated refresh token
refreshToken($refreshToken)
Set / Get access token
- Set the access token, for further method calls:
setAccessToken($token) - Get the access token, if you want to store it for later usage:
getAccessToken()
User methods
See Zoom API Documentation for more information about each method.
Authenticated methods
getUserMeetings(<$id>, <$type>, <$page_size>, <$page_number>)getUserMeetings(<$id>, <$page_size>, <$page_number>)
espresso-dev/zoom-php 适用场景与选型建议
espresso-dev/zoom-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13.41k 次下载、GitHub Stars 达 20, 最近一次更新时间为 2020 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「zoom」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 espresso-dev/zoom-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 espresso-dev/zoom-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 espresso-dev/zoom-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Filament plugin for displaying image galleries with zoom, rotate, and flip capabilities
A laravel zoom api wrapper
Stand-alone zoomify tile generator (format Zoomify) for use with OpenSeadragon, OpenLayers and various viewers.
A PSR-7 compatible library for making CRUD API endpoints
TYPO3 PhotoSwipe-Plugin for native image-enlargement
Laravel Zoom package
统计信息
- 总下载量: 13.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-10