adt/files

v4.2.5 2020-01-14 21:03 UTC

This package is auto-updated.

Last update: 2020-01-14 21:03:52 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.