adt/files

v4.2.6 2020-02-07 14:57 UTC

This package is auto-updated.

Last update: 2020-03-07 15:10:08 UTC


README

Installation

$ composer require adt/files:~1.0

To your bootstrap.php add:

\ADT\Files\Helpers::setSalt('mySalt');

and change mySalt by random 6 character long string.

Usage

Use \ADT\Files\Helpers::resizeName($fileUpload->getName()) in your File model or wherever else you need it.