PHPackages                             fgh151/yii2-upload-behavior - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. fgh151/yii2-upload-behavior

ActiveYii2-extension[File &amp; Storage](/categories/file-storage)

fgh151/yii2-upload-behavior
===========================

Uploud system for yii2 projects

v0.0.4(2y ago)1201MITPHPCI failing

Since Apr 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/fgh151/yii2-upload-behavior)[ Packagist](https://packagist.org/packages/fgh151/yii2-upload-behavior)[ RSS](/packages/fgh151-yii2-upload-behavior/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Uploud system for yii2 projects
===============================

[](#uploud-system-for-yii2-projects)

Uploud system for yii2 projects

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist fgh151/yii2-upload-behavior "*"

```

or add

```
"fgh151/yii2-upload-behavior": "*"

```

to the require section of your `composer.json` file.

Update database schema

```
php yii migrate/up --migrationPath=@vendor/fgh151/yii2-upload-behavior/migrations
```

Usage
-----

[](#usage)

For example we have User model, which need photo. Create table and model `UserLinkPhoto`. Sample code:

```
