Laravel package for local environment friendly managing of cloud-hosted images.
legendarydrew/laravel-siteimage is a Laravel package for laravel package for local environment friendly managing of cloud-hosted images..
It currently has 0 GitHub stars and 184 downloads on Packagist.
Install it with composer require legendarydrew/laravel-siteimage.
Discover more Laravel packages by legendarydrew
or browse all Laravel packages to compare alternatives.
Last updated
A package for managing cloud-hosted images in a Laravel project.
This was developed to allow local mimicking of Cloudinary-hosted images, instead of using precious (and probably expensive) server bandwidth during development.
You can install the package via composer:
composer require legendarydrew/laravel-siteimage
Copy configuration file
php artisan vendor:publish --provider="PZL\SiteImage\SiteImageServiceProvider" --tag="config"
Copy placeholder images (for missing images)
php artisan vendor:publish --provider="PZL\SiteImage\SiteImageServiceProvider" --tag="assets"
(or create your own!)
Environment variables
SITE_IMAGE_PROVIDER
LocalImage (default) or CloudinaryImage.
SITE_IMAGE_LOCAL_FOLDER
The folder where locally-hosted images are stored, relative to the public folder (default 'img').
SiteImage::get($image_id[, $transformation, $format])
SiteImage::approve($image_id)
SiteImage::reject($image_id)
SiteImage::destroy($image_id)
SiteImage::rename($old_image_id, $new_image_id)
...
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.