jimchen/aliyun-php-sdk-vod

阿里云PHP SDK VOD

2.0.1 2021-04-26 06:33 UTC

This package is auto-updated.

Last update: 2024-09-26 14:03:44 UTC


README

阿里云短视频SDK

需求

  • PHP 5.5+

安装

$ composer require "jimchen/aliyun-php-sdk-vod:^2.0"

使用

use JimChen\AliyunVod\Client;
$client = new Client(
        $accessKeyId,
        $accessKeySecret,
        $regionId,
        $clientName,
        $debug,
        $connectionTimeout,
        $timeout,
        $cert,
        $options
);

$result = $client->getVideoInfo()
            ->withVideoId($videoId)
            ->request();
            
$result->isSuccess();

在Laravel中使用

php artisan vendor:publish --provider='JimChen\AliyunVod\LaravelProvider'
$result = app('aliyun.vod')->getVideoInfo()
            ->withVideoId($videoId)
            ->request();

$result->isSuccess();

许可证

Apache License 2.0