nowmovesoft/yii-filepond-assets

Yii2 assets bundles for FilePond

v1.2 2020-10-28 04:31 UTC

This package is auto-updated.

Last update: 2024-04-30 00:35:27 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