Download the PHP package jovialcore/cake-cloudinary without Composer
On this page you can find all versions of the php package jovialcore/cake-cloudinary. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jovialcore/cake-cloudinary
More information about jovialcore/cake-cloudinary
Files in jovialcore/cake-cloudinary
Package cake-cloudinary
Short Description CakeCloudinary plugin for CakePHP
License MIT
Homepage https://github.com/jovialcore/cake-cloudinary
Informations about the package cake-cloudinary
CakePHP Cloudinary Plugin
The CakePHP Cloudinary Plugin provides an easy-to-use wrapper for the Cloudinary PHP SDK to enable easy file uploads to your Cloudinary account in CakePHP projects.
Install the plugin using composer
Installation
You will also need to configure the Cloudinary credentials in the app.php
file:
Usage
To use the Cloudinary component in your controller, you need to load it in your initialize
method:
Uploading an asset
The $file
parameter can be a file path, a File
object or a $this->request->getUploadedFiles()
| $this->request->getUploadedFile();
object.
Quickily upload an asset and return a secure url
Quickily upload a video asset and return a secure url
Quickily upload any file (e.g, pdf, csv, etc) asset and return a secure url
The assets method can also take an array of options as second argument. The options array can include any of the options supported by the Cloudinary API. See the Cloudinary PHP Image Upload API documentation for a list of available options. Example:
The asset method/apis also returns a response object that contains the uploaded image's metadata, including its URL and public ID. You can retrieve the URL of the uploaded image using the getUrl
or getSecureUrl
methods of the Cloudinary component:
Delete assets
Fetching remote assets
Credits
- Chidiebere Chukwudi
- All Contributors
This plugin drew inspiration from the Laravel Cloudinary Package
License
The MIT License (MIT). Please see License File for more information.