ijalnasution / laravel-cloudinary
Cloudinary API Wrapper for Laravel
dev-master
2020-03-26 08:06 UTC
Requires
- php: >=7.2.0
- jrm2k6/cloudder: ^0.6
Requires (Dev)
- orchestra/testbench: ^4.0
This package is auto-updated.
Last update: 2024-12-26 18:02:42 UTC
README
Custom package for private usage, thanks to jrm2k6/cloudder
Installation
The best way to use this package is using composer
composer require ijalnasution/laravel-cloudinary
Usage
publish package vendor
php artisan vendor:publish
How to Use
Upload Single Image
use LaravelCloudinary; $image = "http://res.cloudinary.com/demo/image/upload/couple.jpg"; LaravelCloudinary::uploadImage($image, $folderName, $fileName, $options);
Upload Multiple Image
use LaravelCloudinary; $images = [ 'http://res.cloudinary.com/demo/image/upload/couple.jpg' , 'https://res.cloudinary.com/demo/image/upload/pizza.jpg', 'https://res.cloudinary.com/demo/image/upload/sofa_cat.jpg' ]; LaravelCloudinary::multipleUploadImages($images, $folderName, $fileName, $options);
Contribute
Feel free to contribute or give suggestions. Thank you.
Authors
- Syah Rizal - Initial work