Download the PHP package bgillieron/yii2-cloudinary without Composer

On this page you can find all versions of the php package bgillieron/yii2-cloudinary. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-cloudinary

Yii2Cloudinary

Cloudinary integration for the Yii2 PHP Framework.

This extension provides a Yii2-friendly wrapper around the official Cloudinary PHP SDK, enabling seamless uploads, media management, and responsive image rendering in Yii2 projects.


📁 Project Structure


🛠 Features


📦 Installation

Install the extension via Composer:


🔧 Configuration

Add the module and component to your Yii2 config:


🧱 Migrations

To create the necessary tables for storing Cloudinary media and metadata, run:

This will create:

📖 For full details on table structure and purpose, see Cloudinary Media Migrations.


🚀 Media Usage

Uploading Files (Server-Side)

This method:

🔄 Uploading with Custom Payload

You can pass extra metadata to control how the upload is saved:


🔁 Saving Upload Result & Creating Relations

When a file is uploaded to Cloudinary, the extension automatically saves a corresponding record in the database (cloudinary_media) — but in most real-world projects, you’ll also want to associate that file with a specific model (like Post, Product, User, etc.).

To keep your application logic clean and flexible, this extension introduces the concept of relation callbacks, defined via the relationSaverMap.

🧠 Why Use relationSaverMap?

🗂️ Define Any Number of Relation Handlers


Rendering a Responsive Image

📖 See Render Responsive Image for advanced usage and options.


🖼 Upload Widget & UI

Rendering the Upload Widget

This registers the Cloudinary Upload Widget and binds it to the DOM element with the given ID.

Key behaviors:


🔁 Upload Handler URL

When a file is uploaded via the widget, Cloudinary sends the file to their CDN,
then triggers a callback with metadata that is posted to your app’s upload handler.

By default, this handler is set to:

You can override this in your component config if needed:

This endpoint must match the route defined by your Yii2CloudinaryController::actionUploadHandler()
and is responsible for saving the uploaded media record and executing your relationSaverMap logic.
Only change this if absolutely necessary — overriding it incorrectly will break key functionality of this module.


🌍 Upload Widget Localization

This extension supports:

📖 See Upload Widget Localization for a complete guide.


🖼 Lightbox Support (PhotoSwipe)

Register the ESM Asset Bundle

Initialize in View

📌 ES modules require explicit import and do not auto-run.


⚙️ Advanced Access

SDK Access

This returns the Cloudinary\Cloudinary instance for advanced transformations.


Model Reference

These models support multilingual metadata and responsive rendering:


📝 License

MIT License © Brendon Gilliéron


All versions of yii2-cloudinary with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ~2.0.0
cloudinary/cloudinary_php Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bgillieron/yii2-cloudinary contains the following files

Loading the files please wait ...