1. Go to this page and download the library: Download vova07/yii2-fileapi-widget 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/ */
vova07 / yii2-fileapi-widget example snippets
// MyController.php
use vova07\fileapi\actions\UploadAction as FileAPIUpload;
...
public function actions()
{
return [
'fileapi-upload' => [
'class' => FileAPIUpload::className(),
'path' => '/path/to/temp/files'
]
];
}