PHP code example of exercisebook / flysystem-imagex

1. Go to this page and download the library: Download exercisebook/flysystem-imagex 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/ */

    

exercisebook / flysystem-imagex example snippets


    
    $imageX = new ImageXAdapter([
                                      'region' => 'Region',             // 如:cn-north-1
                                      'access_key' => 'Access Key',
                                      'secret_key' => 'Secret Key',
                                      'service_id' => 'Service ID',
                                      'domain' => 'Binding Domain'      // 填写该图片服务所绑定的域名如 imagex.superexercisebook.com。推荐以 https:// 开头。该值用来拼接 url。
                               ]);