Skip to content

q312700254/aliyuncs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Aliyuncs for php

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

Contents

Installation

With composer

composer require llwch/aliyuncs

Or add

"llwch/aliyuncs": "dev-master"

to your composer.json. Then run composer install or composer update.

Example

An example of how to used:

<?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;
    }
}

About

Aliyuncs for php

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages