2017 © Pedro Peláez
 

library fileupload

File upload and store utilities

image

t-kanstantsin/fileupload

File upload and store utilities

  • Monday, May 7, 2018
  • by tkanstantsin
  • Repository
  • 0 Watchers
  • 0 Stars
  • 438 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 7 Open issues
  • 23 Versions
  • 2 % Grown

The README.md

File upload

Widget for easily control for file upload, store and format., (*1)

Latest Stable Version Total Downloads Build Status Scrutinizer Code Quality Code Coverage Software License, (*2)

Configuration

Full-featured configuration example:, (*3)

<?php
use \tkanstantsin\fileupload\FileManager;
use \tkanstantsin\fileupload\formatter\Image;
use \League\Flysystem\Adapter\Local as LocalFSAdapter;
use \League\Flysystem\Filesystem;

new FileManager([
    'uploadFS' => new Filesystem(new LocalFSAdapter(__DIR__ . '/tmp/upload', LOCK_EX, LocalFSAdapter::DISALLOW_LINKS)),
    'cacheFS' => new Filesystem(new LocalFSAdapter(__DIR__ . '/tmp/web', LOCK_EX, LocalFSAdapter::DISALLOW_LINKS)),

    'aliasArray' => [
        'attachment' => [
            'maxCount' => 1,
        ],
    ],
    'formatterConfigArray' => [
        'attachment-gallery' => [
            'class' => Image::class,
            'width' => 1920,
            'height' => 1080,
            'mode' => Image::RESIZE_INSET,
        ],
        'attachment-preview' => [
            'class' => Image::class,
            'width' => 300,
            'height' => 150,
            'mode' => Image::RESIZE_OUTBOUND,
        ],
    ],
]);

Alias

name - Alias name must contain only latin letters, digits, hyphen (-) and underscore, (*4)

class, (*5)

directory, (*6)

maxSize, (*7)

maxCount, (*8)

multiple, (*9)

hashMethod, (*10)

cacheHashLength, (*11)

filePathClosure, (*12)

assetNameClosure, (*13)

The Versions

27/12 2017

v2.0

2.0.0.0 https://github.com/t-kanstantsin/yii2-fileupload

File upload and store utilities

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload fileupload

27/12 2017

v1.3

1.3.0.0 https://github.com/t-kanstantsin/yii2-fileupload

File upload and store utilities

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload fileupload

08/12 2017

v0.0.1

0.0.1.0 https://github.com/t-kanstantsin/yii2-fileupload

File upload and store utilities

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload fileupload