yusov/media-manager

There is no license information available for the latest version (0.1.1) of this package.

Package for processing image

0.1.1 2021-10-29 15:09 UTC

This package is auto-updated.

Last update: 2024-05-16 22:04:27 UTC


README

Media manager

This package can process images through the Imagic library with a custom configs.

####Dependencies: php 7.4, intervention/image, laravel/framework, league/flysystem, ramsey/uuid.

####Installation:

  1. Register MediaManager\Providers\ServiceProvider::class in app.php in providers.
  2. Init vendor:publish MediaManager for publishing media.php config file, then restore application config caches.

####Example of usage:

Class ImageMediaService has a couple of methods for processing images:

  1. upload(configurator, model, file);
  2. `delete(configurator, model);

####Helpers:

PathHelper::class can prepare full path according the image model.