2017 © Pedro Peláez
 

yii2-extension yii2-upload

Yii2 helper for creating and upload file or files

image

alkurn/yii2-upload

Yii2 helper for creating and upload file or files

  • Friday, July 27, 2018
  • by ganesh.alkurn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 207 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

Thumbnail Image Helper for Yii2

Yii2 helper for creating and caching thumbnails on real time., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

  • Either run
php composer.phar require --prefer-dist alkurn/yii2-upload "dev-master"

or add, (*3)

"alkurn/yii2-upload" : "*"

to the require section of your application's composer.json file., (*4)

  • Add a new component in components section of your application's configuration file (optional), for example:
'components' => [ 
    'upload' => [
                'class' =>'alkurn\upload\Upload',
                'uploadsAlias' => Yii::getAlias('@storage/'),
                'uploadsModel' => CoreMedia::class,
            ],
]

and in bootstrap section, for example:, (*5)

'bootstrap' => ['log', 'thumbnail', 'upload'],

It is necessary if you want to set global helper's settings for the application., (*6)

Usage

For example:, (*7)

use alkurn\upload\Upload;

$image = Yii::$app->upload->upload('image', $model);

The Versions

27/07 2018

dev-master

9999999-dev

Yii2 helper for creating and upload file or files

  Sources   Download

MIT

The Requires

 

yii2 helper upload