Download the PHP package foodticket/laravel-filesystem-cloudflare-images without Composer
On this page you can find all versions of the php package foodticket/laravel-filesystem-cloudflare-images. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download foodticket/laravel-filesystem-cloudflare-images
More information about foodticket/laravel-filesystem-cloudflare-images
Files in foodticket/laravel-filesystem-cloudflare-images
Package laravel-filesystem-cloudflare-images
Short Description A Laravel filesystem driver for Cloudflare Images
License MIT
Informations about the package laravel-filesystem-cloudflare-images
Cloudflare Images Filesystem Driver
This package provides a filesystem driver for Cloudflare Images. If you need more control or want to want to implement more Cloudflare API endpoints have a look at our Laravel wrapper for Cloudflare which is also used by this packages.
The full documentation of the Cloudflare Images API can be found here.
Requirements
- PHP >= 8.0
- Laravel >= 9.0
Installation
To start using the package, you need to install it via Composer:
Confuguration
Add the following to your config/filesystems.php file:
Add the following environment variables to your .env file:
If you did not have our Laravel-Cloudflare wrapper yet you also need to add the following environment variables to your .env file:
Getting started
The Cloudflare Images filesystem driver can be used as you would use another filesystem driver. The documentation for the Laravel filesystem can be found here.
The following example shows how to use the Cloudflare Images filesystem driver to store a file.
Notes
Cloudflare Images doesnot support directories so not all filesystem methods are available. The following methods are supported:
fileExists
write
read
delete
visibility
mimeType
lastModified
fileSize
move
copy
The following methods are not supported:
directoryExists
writeStream
readStream
deleteDirectory
createDirectory
listContents
The following methods still need to be implemented:
setVisibility
Security Vulnerabilities
If you discover a security vulnerability within this project, please email me via [email protected].
All versions of laravel-filesystem-cloudflare-images with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
foodticket/laravel-cloudflare Version ^v0.0.8