nowmovesoft / yii-filepond-assets
Yii2 assets bundles for FilePond
v1.2
2020-10-28 04:31 UTC
Requires
- php: >=7.4
- npm-asset/filepond: ^4.21.1
- npm-asset/filepond-plugin-file-encode: ^2.1.9
- npm-asset/filepond-plugin-file-metadata: ^1.0.7
- npm-asset/filepond-plugin-file-poster: ^2.3.1
- npm-asset/filepond-plugin-file-rename: ^1.1.6
- npm-asset/filepond-plugin-file-validate-size: ^2.2.2
- npm-asset/filepond-plugin-file-validate-type: ^1.2.5
- npm-asset/filepond-plugin-image-crop: ^2.0.4
- npm-asset/filepond-plugin-image-edit: ^1.6.1
- npm-asset/filepond-plugin-image-exif-orientation: ^1.0.9
- npm-asset/filepond-plugin-image-filter: ^1.0.0
- npm-asset/filepond-plugin-image-preview: ^4.6.4
- npm-asset/filepond-plugin-image-resize: ^2.0.7
- npm-asset/filepond-plugin-image-transform: ^3.7.4
- npm-asset/filepond-plugin-image-validate-size: ^1.2.4
- npm-asset/jquery-filepond: ^1.0.0
- yiisoft/yii2: ~2.0.38
Requires (Dev)
- codeception/codeception: ^4.1.9
- codeception/module-yii2: ^1.1.1
This package is auto-updated.
Last update: 2025-05-10 20:52:53 UTC
README
Yii2 assets bundles collection for FilePond.
Installation
If you don't have Composer, you may install it by following instructions at getcomposer.org.
Then you can install this library using the following command:
composer require nowmovesoft/yii-filepond-assets
Usage
Example
This code will add FilePond scripts to your view:
<?php // In Yii2 view file use nms\filepond\FilePondAsset; FilePondAsset::register($this);
Assets conformity
Basic namespace is nms\filepond
. If you want to connect wrapper or plugin, you don't need to connect FilePond itself directly. It will connect automatically.
FilePond Script | Yii Asset |
---|---|
FilePond itself | FilePondAsset |
jQuery wrapper | JqueryAsset |
File encode plugin | FileEncodeAsset |
File metadata plugin | FileMetadataAsset |
File poster plugin | FilePosterAsset |
File rename plugin | FileRenameAsset |
File size validation plugin | FileSizeValidationAsset |
File type validation plugin | FileTypeValidationAsset |
Image EXIF orientation plugin | ImageExifOrientationAsset |
Image crop plugin | ImageCropAsset |
Image edit plugin | ImageEditAsset |
Image filter plugin | ImageFilterAsset |
Image preview plugin | ImagePreviewAsset |
Image resize plugin | ImageResizeAsset |
Image size validation plugin | ImageSizeValidationAsset |
Image transform plugin | ImageTransformAsset |
Tests
To run tests you should install Docker and Docker Compose first.
After that, go to bin
directory and run the following commands:
./composer.sh install ./codecept.sh run