PHP code example of llwch / aliyuncs

1. Go to this page and download the library: Download llwch/aliyuncs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

llwch / aliyuncs example snippets




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