llwch / aliyuncs
Aliyuncs for php
v1.0
2018-04-04 06:40 UTC
Requires
- php: >=5.3.3
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-29 05:41:55 UTC
README
就是一个封装了阿里云图片鉴黄,涉政暴恐,场景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; } }