PHPackages                             troy/yii2-image-upload - 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. troy/yii2-image-upload

ActiveYii2-extension

troy/yii2-image-upload
======================

upload image via ajax

1.0(11y ago)102.9k4[1 issues](https://github.com/lygfanye/yii2-image-upload/issues)BSD-3-ClauseJavaScript

Since Dec 17Pushed 8y ago3 watchersCompare

[ Source](https://github.com/lygfanye/yii2-image-upload)[ Packagist](https://packagist.org/packages/troy/yii2-image-upload)[ RSS](/packages/troy-yii2-image-upload/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

ajaxImageUpload
===============

[](#ajaximageupload)

upload image via ajax

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist troy/yii2-image-upload ""

```

or add

```
"troy/yii2-image-upload": ""

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
上传图片
```

```
