PHP code example of jufeng / phpsdk

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

    

jufeng / phpsdk example snippets

javascript
$('#file_upload').uploadify({
    'swf'      : 'uploadify.swf',
    'uploader' : '/file/upload', // 图片服务url
    'buttonText':'点击上传',
    'buttonImage':'btnbg.png',
    'multi'    : false,
    'formData' : {token: 'upload_token'}, // 从服务端获取的token值
    'onUploadSuccess': function (file, data, response) {
        // 上传成功回调
    },
});