PHP code example of cosyphp / alioss-form

1. Go to this page and download the library: Download cosyphp/alioss-form 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/ */

    

cosyphp / alioss-form example snippets



return [
    'OSS_ACCESS_ID' => '0I********Dx',
    'OSS_ACCESS_KEY' => 'N*******************NT',
    'OSS_ENDPOINT' => 'oss-cn-*****.aliyuncs.com',
    'OSS_BUCKET' => '这里配置BUCKET名',
    'OSS_HOST' => 'http://<BUCKET名>.oss-cn-****.aliyuncs.com',
    //前台显示域名
    'OSS_URL' => 'http://<BUCKET名>.oss-cn-*****.aliyuncs.com', // CDN域名,没有CDN就和OSS_HOST一致即可
];