mscharl / laravel-static-image-cache
This package is abandoned and no longer maintained.
No replacement package was suggested.
store/cache external images as a static file
Package info
github.com/mscharl/laravel-static-image-cache
pkg:composer/mscharl/laravel-static-image-cache
v1.2
2017-08-31 13:22 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.0.0
- illuminate/console: ^5.0
- illuminate/filesystem: ^5.0
- illuminate/http: ^5.0
- illuminate/routing: ^5.0
- illuminate/support: ^5.0
This package is not auto-updated.
Last update: 2020-01-16 23:27:26 UTC
README
store/cache external images as a static file
Setup
Add the service provider to the app.php provider array
[ MScharl\LaravelStaticImageCache\Provider\LaravelStaticImageCacheProvider::class, ]
Usage
Just use the staticImage-helper to generate the static file url
<img src="{{ staticImage('https://images.domain.com/my-image.jpg') }}" alt="An external image">
Clear the files
To clear all the files manually you can use an artisan task.
php artisan static-image-cache:clear