PHP code example of ivanlulyf / bunnyphp-cos

1. Go to this page and download the library: Download ivanlulyf/bunnyphp-cos 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/ */

    

ivanlulyf / bunnyphp-cos example snippets


"storage" => [
	"name" => "bunny.cos",
	"secretId" => "",           // replace to your Tencent Cloud secretId
	"secretKey" => "",          // replace to your Tencent Cloud secret
	"region" => "",             // replace to your COS region
	"bucket" => "",             // replace to your COS bucket
	"url" => "",                // replace to your COS access url
],