ctbuh/cloudinary-php

There is no license information available for the latest version (dev-main) of this package.

dev-main 2022-11-29 17:07 UTC

This package is not auto-updated.

Last update: 2024-03-20 01:51:04 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