https://github.com/xutl/yii2-bootstrap-filestyle-asset
https://github.com/xutl/yii2-bootstrap-filestyle-asset
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xutl/yii2-bootstrap-filestyle-asset
- Owner: xutl
- License: mit
- Created: 2016-11-08T10:26:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-30T03:48:37.000Z (almost 8 years ago)
- Last Synced: 2025-01-20T12:46:36.549Z (4 months ago)
- Language: HTML
- Size: 115 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yii2-bootstrap-filestyle-asset
[](https://packagist.org/packages/xutl/yii2-bootstrap-filestyle-asset)
[](https://packagist.org/packages/xutl/yii2-bootstrap-filestyle-asset)
[](https://www.versioneye.com/php/xutl:yii2-bootstrap-filestyle-asset/dev-master)
[](https://packagist.org/packages/xutl/yii2-bootstrap-filestyle-asset)Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist xutl/yii2-bootstrap-filestyle-asset
```or add
```
"xutl/yii2-bootstrap-filestyle-asset": "~1.0.0"
```to the require section of your `composer.json` file.
Usage
-----```php
use xutl\bootstrap\filestyle\FilestyleAsset;
FilestyleAsset::register($this);echo $form->field($model, 'file')->fileInput(['class'=>'filestyle','data'=>['buttonText'=>Yii::t('app','Choose file')]]);
```## License
This is released under the MIT License. See the bundled [LICENSE.md](LICENSE.md)
for details.