2017 © Pedro Peláez
 

yii2-extension yii2-filebehavior

File behavior for Yii2.

image

maddoger/yii2-filebehavior

File behavior for Yii2.

  • Thursday, March 31, 2016
  • by maddoger
  • Repository
  • 1 Watchers
  • 0 Stars
  • 129 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 22 % Grown

The README.md

yii2-filebehavior

File field behavior for Yii 2, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist maddoger/yii2-filebehavior "*"

or add, (*4)

"maddoger/yii2-filebehavior": "*"

to the require section of your composer.json file., (*5)

In model behaviors:, (*6)

[
    'class' => 'maddoger\filebehavior\FileBehavior',
    'attribute' => 'file_attribute',
    'deleteAttribute' => 'deleteFile',
    'fileName' => function ($model, $file, $index) {
        return md5($file->name).'.'.$file->extension;
    },
    'basePath' => '@webapp/uploads/files',
    'baseUrl' => '@web/uploads/files',
    'overwriteFile' => false,
],

The Versions

31/03 2016

dev-master

9999999-dev https://github.com/maddoger/yii2-filebehavior

File behavior for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov

31/03 2016

v1.1.2

1.1.2.0 https://github.com/maddoger/yii2-filebehavior

File behavior for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov

31/03 2016

v1.1.1

1.1.1.0 https://github.com/maddoger/yii2-filebehavior

File behavior for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov

06/02 2016

v1.1.0

1.1.0.0 https://github.com/maddoger/yii2-filebehavior

File behavior for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov

30/03 2015

v1.0.0.1

1.0.0.1 https://github.com/maddoger/yii2-filebehavior

File behavior for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov

30/03 2015

v1.0.0

1.0.0.0 https://github.com/maddoger/yii2-filebehavior

File behavior for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov