dframe / filestorage
File system storage with cache
v1.1.0
2022-09-08 12:44 UTC
Requires
- ext-fileinfo: *
- ext-json: *
- league/flysystem: ^1.1.4
- league/flysystem-cached-adapter: ^1.1
Requires (Dev)
- dframe/dframe: *
- phpunit/phpunit: ^5.7.10
Suggests
- coldume/imagecraft: ^1.0
This package is auto-updated.
Last update: 2024-11-08 17:30:42 UTC
README
Flysystem wrapper which allow you to storage file and styling images
Preview
Installation
composer require dframe/filestorage
Simple usage
$Storage->put('local', $_FILES['file']['tmp_name'], 'upload/picture1.jpg'); $Storage->image('picture1.jpg')->stylist('Square')->size('250')->get(); $Storage->image('picture1.jpg')->stylist('Rect')->size('250x550')->get(); $Storage->image('fileNotExist.jpg', 'noImage.png')->stylist('Rect')->size('50x50')->get(); $Storage->drop('local', 'upload/picture1.jpg');
Documentation available at https://dframeframework.com/en/docs/fileStorage/master/configuration
What's included?
- Image stylist
- Storage files and information
- Cache generator
Feature
- Text on images
Examples
For DframeFramework Example #1
Stalone Image Stylist Code PHP Example #2