https://github.com/alexeevdv/yii2-single-image-upload
https://github.com/alexeevdv/yii2-single-image-upload
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexeevdv/yii2-single-image-upload
- Owner: alexeevdv
- Created: 2017-07-20T07:19:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-28T08:52:45.000Z (almost 6 years ago)
- Last Synced: 2025-02-04T22:27:25.458Z (4 months ago)
- Language: PHP
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
The preferred way to install this extension is through [composer](https://getcomposer.org/download/).
Either run
```bash
$ composer require alexeevdv/yii2-single-image-upload "^1.0"
```or add
```
"alexeevdv/yii2-single-image-upload": "^1.0"
```to the ```require``` section of your `composer.json` file.
## Usage
```php
echo $form->field($model, 'image')->widget(alexeevdv\image\SingleImageUploadWidget::class);
```