PHP code example of gustarus / yii2-upload

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

    

gustarus / yii2-upload example snippets


[
  'aliases' => [
    '@uploads' => '@app/web/uploads',
  ],
  
  'modules' => [
    'upload' => [
      'class' => 'gustarus\upload\Module',
    ],
  ],
];

[
  'controllerNamespace' => 'app\commands',
  'controllerMap' => [
    'migrate' => [
      'class' => 'yii\console\controllers\MigrateController',
      'migrationPath' => [
        '@gustarus/upload/migrations',
      ],
    ],
  ],
]