llwch/aliyuncs

Aliyuncs for php

v1.0 2018-04-04 06:40 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:41:55 UTC


README

这是一个封装了阿里云图片鉴黄、涉政暴恐、场景API的composer包,供自己使用。。。。。

内容

安装

使用composer

composer require llwch/aliyuncs

或添加

"llwch/aliyuncs": "dev-master"

到您的composer.json中。然后运行composer installcomposer update

示例

使用示例

<?php

use AliyunCs\Client\ImageSyncScanRequestClient;

class ImageSyncScan
{
    public function handle()
    {
        $accessKey = 'xxxxxxxxxxxxx';
        $secretKey = 'xxxxxxxxxxxxx';
        $handleImg = 'http://www.xxxx.com/xxx.jpg';
        $handleImg = [
            'http://www.xxxx.com/xxx.jpg',
            'http://www.xxxx.com/xxx.jpg'
        ];
        $imageSyncScanResults = (new ImageSyncScanRequestClient($accessKey, $secretKey))->request($handleImg);
        
        //TODO;
    }
}