jimchen/aliyun-php-sdk-vod

aliyun php sdk vod

2.0.1 2021-04-26 06:33 UTC

This package is auto-updated.

Last update: 2024-11-26 14:23:29 UTC


README

阿里云短视频SDK

Requirements

  • PHP 5.5+

Installing

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

Usage

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

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

In Laravel

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

$result->isSuccess();

License

Apache License 2.0