ctbuh/cloudinary-php

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
There is no license information available for the latest version (dev-main) of this package.

dev-main 2020-11-06 17:50 UTC

This package is not auto-updated.

Last update: 2021-05-08 18:31:12 UTC


README

Useful helpers functions to be used with Cloudinary.

composer require ctbuh/cloudinary-php "dev-main"

Apply transformations to an existing Cloudinary URL

echo cl_url_update_transformations("https://res.cloudinary.com/ctbuh2/image/upload/v1601396721/sample.jpg", 'w_350,h_250');

// https://res.cloudinary.com/ctbuh2/image/upload/w_350,h_250/v1601396721/sample.jpg

echo cl_url_update_transformations("https://res.cloudinary.com/ctbuh2/image/upload/h_200/v1601396721/sample.jpg", 'w_350');

// https://res.cloudinary.com/ctbuh2/image/upload/h_200,w_350/v1601396721/sample.jpg