PHP code example of zuitu / ufile-sdk

1. Go to this page and download the library: Download zuitu/ufile-sdk 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/ */

    

zuitu / ufile-sdk example snippets


    $sdk = new UfileSdk('storage','api_pub_key','api_pub_secret');
    $sdk->put('text.txt',"content");
    $sdk->putFile('text.txt',"/path/to/yourfile");
    $contents = $sdk->get('dd');
    $exists = $sdk->exists('dd222');
    $size = $sdk->delete('dd');