Download the PHP package shanmuga/laravel-cloudinary without Composer
On this page you can find all versions of the php package shanmuga/laravel-cloudinary. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shanmuga/laravel-cloudinary
More information about shanmuga/laravel-cloudinary
Files in shanmuga/laravel-cloudinary
Package laravel-cloudinary
Short Description Cloudinary Wrapper for Laravel 5,6 and 7
License MIT
Rated 5.00 based on 1 reviews
Informations about the package laravel-cloudinary
Cloudinary API Wrapper for Laravel 5,6 and 7.
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
This Package is the fork of unmaintained package https://github.com/jrm2k6/cloudder
Installation
You can install the package via composer:
Configuration
Modify your .env
file to add the following information from Cloudinary
Required
Optional
Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider. If you don't use auto-discovery follow the next steps:
Add the following in config/app.php:
Run php artisan vendor:publish --tag="LaravelCloudinary"
Usage
upload()
with:
$filename
: path to the image you want to upload$publicId
: the id you want your picture to have on Cloudinary, leave it null to have Cloudinary generate a random id.$options
: options for your uploaded image, check the Cloudinary documentation to know more$tags
: tags for your image
returns the CloudinaryWrapper
.
uploadVideo()
with:
$filename
: path to the video you want to upload$publicId
: the id you want your video to have on Cloudinary, leave it null to have Cloudinary generate a random id.$options
: options for your uploaded video, check the Cloudinary documentation to know more$tags
: tags for your image
returns the CloudinaryWrapper
.
getPublicId()
returns the public id
of the last uploaded resource.
getResult()
returns the result of the last uploaded resource.
show() + secureShow()
with:
$publicId
: public id of the resource to display$options
: options for your uploaded resource, check the Cloudinary documentation to know more
returns the url
of the picture on Cloudinary (https url if secureShow is used).
showPrivateUrl()
with:
$publicId
: public id of the resource to display$format
: format of the resource your want to display ('png', 'jpg'...)$options
: options for your uploaded resource, check the Cloudinary documentation to know more
returns the private url
of the picture on Cloudinary, expiring by default after an hour.
rename()
with:
$publicId
: publicId of the resource to rename$toPublicId
: new public id of the resource$options
: options for your uploaded resource, check the cloudinary documentation to know more
renames the original picture with the $toPublicId
id parameter.
destroyImage() + delete()
with:
$publicId
: publicId of the resource to remove$options
: options for the image to delete, check the cloudinary documentation to know more
removes image from Cloudinary.
destroyImages()
with:
$publicIds
: array of ids, identifying the pictures to remove$options
: options for the images to delete, check the cloudinary documentation to know more
removes images from Cloudinary.
addTag()
with:
$tag
: tag to apply$publicIds
: images to apply tag to$options
: options for your uploaded resource, check the cloudinary documentation to know more
removeTag()
with:
$tag
: tag to remove$publicIds
: images to remove tag from$options
: options for your uploaded image, check the Cloudinary documentation to know more
createArchive()
with:
$options
: options for your archive, like name, tag/prefix/public ids to select images$archiveName
: name you want to give to your archive$mode
: 'create' or 'download' ('create' will create an archive and returns a JSON response with the properties of the archive, 'download' will return the zip file for download)
creates a zip file on Cloudinary.
downloadArchiveUrl()
with:
$options
: options for your archive, like name, tag/prefix/public ids to select images$archiveName
: name you want to give to your archive
returns a download url
for the newly created archive on Cloudinary.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Shanmuga
- All Contributors
License
The MIT License (MIT). Please see License File for more information.