axguowen / ctyun-cdn
Ctyun PHP SDK CDN 包
v1.0.3
2024-01-30 02:48 UTC
Requires
- php: >=5.6.0
- axguowen/http-client: ^1.0
This package is auto-updated.
Last update: 2024-09-23 08:58:09 UTC
README
PHP SDK 包要求运行环境至少为 PHP 5.6 版本(暂不支持 PHP 8 及以上版本),例如 5.6、7.0、7.1、7.2、7.3。
安装
composer require axguowen/ctyun-cdn
创建刷新 URL 任务
use axguowen\ctyun\services\cdn\Auth; use axguowen\ctyun\services\cdn\CdnClient; // 实例化授权类 $ctyunAuth = new Auth('CTYUN_ACCESSID', 'CTYUN_ACCESSSECRET'); $cdnClient = new CdnClient($ctyunAuth); // 刷新链接 $cdnClient->refreshManageCreate(['https://xxxx/xxxx.html', 'https://xxxx/ccccc.html']);