PHP code example of humaninitiative / yii2-minio-component

1. Go to this page and download the library: Download humaninitiative/yii2-minio-component 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/ */

    

humaninitiative / yii2-minio-component example snippets


MINIO_REGION={region}
MINIO_ENDPOINT={endpoint url} 
MINIO_KEY={user key}
MINIO_SECRET={user secret pass}
MINIO_DEFAULT_BUCKET={default bucket}

cp vendor/humaninitiative/yii2-minio-component/src/FileController.php modules/api/controllers/