PHPackages                             cloudinary/cloudinary\_php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. cloudinary/cloudinary\_php

ActiveLibrary[Image &amp; Media](/categories/media)

cloudinary/cloudinary\_php
==========================

Cloudinary PHP SDK

3.1.2(7mo ago)39913.5M—2.1%152[4 issues](https://github.com/cloudinary/cloudinary_php/issues)[1 PRs](https://github.com/cloudinary/cloudinary_php/pulls)20MITPHPPHP &gt;=8.0.0CI passing

Since Nov 4Pushed 7mo ago43 watchersCompare

[ Source](https://github.com/cloudinary/cloudinary_php)[ Packagist](https://packagist.org/packages/cloudinary/cloudinary_php)[ Docs](https://github.com/cloudinary/cloudinary_php)[ RSS](/packages/cloudinary-cloudinary-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (99)Used By (20)

[![Tests](https://github.com/cloudinary/cloudinary_php/actions/workflows/test.yaml/badge.svg)](https://github.com/cloudinary/cloudinary_php/actions/workflows/test.yaml)[![license](https://camo.githubusercontent.com/104899bd49ee362a07c8b509e3c75f2d6a0bb163daa93c29fc981a6ca69dd754/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636c6f7564696e6172792f636c6f7564696e6172795f7068702e7376673f6d61784167653d32353932303030)](https://github.com/cloudinary/cloudinary_php/blob/master/LICENSE)[![Packagist](https://camo.githubusercontent.com/644dd72c4726a73553fd4c98f6ef8e62aec04e1a91421171181afdc333984733/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f7564696e6172792f636c6f7564696e6172795f7068702e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/cloudinary/cloudinary_php)[![Packagist](https://camo.githubusercontent.com/01035d4dac7fd67fde00363b700a897692f8727ec0ceef049692ef762675d480/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c6f7564696e6172792f636c6f7564696e6172795f7068702e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/cloudinary/cloudinary_php/stats)

Cloudinary PHP SDK
==================

[](#cloudinary-php-sdk)

About
-----

[](#about)

The Cloudinary PHP SDK allows you to quickly and easily integrate your application with Cloudinary. Effortlessly optimize, transform, upload and manage your cloud's assets.

#### Note

[](#note)

This Readme provides basic installation and usage information. For the complete documentation, see the [PHP SDK Guide](https://cloudinary.com/documentation/php_integration).

Table of Contents
-----------------

[](#table-of-contents)

- [Key Features](#key-features)
- [Version Support](#Version-Support)
- [Installation](#installation)
- [Usage](#usage)
    - [Setup](#Setup)
    - [Transform and Optimize Assets](#Transform-and-Optimize-Assets)

Key Features
------------

[](#key-features)

- [Transform](https://cloudinary.com/documentation/php_video_manipulation#video_transformation_examples) and [optimize](https://cloudinary.com/documentation/php_image_manipulation#image_optimizations) assets.
- Generate [image](https://cloudinary.com/documentation/php_image_manipulation#deliver_and_transform_images) and [video](https://cloudinary.com/documentation/php_video_manipulation#php_video_transformation_code_examples) tags.
- [Asset Management](https://cloudinary.com/documentation/php_asset_administration).
- [Secure URLs](https://cloudinary.com/documentation/video_manipulation_and_delivery#generating_secure_https_urls_using_sdks).

Version Support
---------------

[](#version-support)

SDK VersionPHP 5.4PHP 5.5PHP 5.6PHP 7.xPHP 8.0 - 8.3PHP 8.43.x✘✘✘✘✔✔2.x✘✘✔✔✔✘ \*1.x✔✔✔✔✘✘\* Deprecation warnings

Installation
------------

[](#installation)

```
composer require "cloudinary/cloudinary_php"
```

Usage
=====

[](#usage)

### Migration

[](#migration)

See the [Cloudinary PHP SDK Migration guide](https://cloudinary.com/documentation/php2_migration) for more information on migrating to this version of the PHP SDK.

The previous (1.x) version of the SDK is located [here](https://github.com/cloudinary/cloudinary_php/tree/support/1.x).

### Setup

[](#setup)

```
use Cloudinary\Cloudinary;

$cloudinary = new Cloudinary();
```

### Transform and Optimize Assets

[](#transform-and-optimize-assets)

- [See full documentation](https://cloudinary.com/documentation/php_image_manipulation).

```
$cloudinary->image('sample.jpg')->resize(Resize::fill()->width(100)->height(150))->format(Format::auto());
```

### Upload

[](#upload)

- [See full documentation](https://cloudinary.com/documentation/php_image_and_video_upload).
- [Learn more about configuring your uploads with upload presets](https://cloudinary.com/documentation/upload_presets).

```
$cloudinary->uploadApi->upload('my_image.jpg');
```

### Security options

[](#security-options)

- [See full documentation](https://cloudinary.com/documentation/solution_overview#security).

Contributions
-------------

[](#contributions)

- Ensure tests run locally
- Open a PR and ensure Travis tests pass

Get Help
--------

[](#get-help)

If you run into an issue or have a question, you can either:

- Issues related to the SDK: [Open a GitHub issue](https://github.com/cloudinary/cloudinary_php/issues).
- Issues related to your account: [Open a support ticket](https://cloudinary.com/contact)

About Cloudinary
----------------

[](#about-cloudinary)

Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.

Additional Resources
--------------------

[](#additional-resources)

- [Cloudinary Transformation and REST API References](https://cloudinary.com/documentation/cloudinary_references): Comprehensive references, including syntax and examples for all SDKs.
- [MediaJams.dev](https://mediajams.dev/): Bite-size use-case tutorials written by and for Cloudinary Developers
- [DevJams](https://www.youtube.com/playlist?list=PL8dVGjLA2oMr09amgERARsZyrOz_sPvqw): Cloudinary developer podcasts on YouTube.
- [Cloudinary Academy](https://training.cloudinary.com/): Free self-paced courses, instructor-led virtual courses, and on-site courses.
- [Code Explorers and Feature Demos](https://cloudinary.com/documentation/code_explorers_demos_index): A one-stop shop for all code explorers, Postman collections, and feature demos found in the docs.
- [Cloudinary Roadmap](https://cloudinary.com/roadmap): Your chance to follow, vote, or suggest what Cloudinary should develop next.
- [Cloudinary Facebook Community](https://www.facebook.com/groups/CloudinaryCommunity): Learn from and offer help to other Cloudinary developers.
- [Cloudinary Account Registration](https://cloudinary.com/users/register/free): Free Cloudinary account registration.
- [Cloudinary Website](https://cloudinary.com): Learn about Cloudinary's products, partners, customers, pricing, and more.

Licence
-------

[](#licence)

Released under the MIT license.

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance61

Regular maintenance activity

Popularity69

Solid adoption and visibility

Community51

Growing community involvement

Maturity84

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Recently: every ~125 days

Total

85

Last Release

239d ago

Major Versions

1.19.0 → 2.0.0-beta82020-11-30

1.20.0 → 2.0.02021-01-31

1.20.1 → 2.6.12022-02-01

1.20.2 → 2.11.02023-05-23

2.14.0 → 3.0.02025-01-06

PHP version history (5 changes)1.0.7PHP &gt;=5.2.0

1.0.8PHP &gt;=5.3.0

1.11.1PHP &gt;=5.4.0

2.0.0-beta2PHP &gt;=5.6.0

3.0.0PHP &gt;=8.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/824859?v=4)[Nadav Soferman](/maintainers/nadavs)[@nadavs](https://github.com/nadavs)

![](https://www.gravatar.com/avatar/63bb27f752bdbf0c4017692238430b775e6a6e3649eb762524ebfaa51f985bf1?d=identicon)[cloudinary](/maintainers/cloudinary)

---

Top Contributors

[![const-cloudinary](https://avatars.githubusercontent.com/u/35217733?v=4)](https://github.com/const-cloudinary "const-cloudinary (170 commits)")[![tallevami-home](https://avatars.githubusercontent.com/u/237951057?v=4)](https://github.com/tallevami-home "tallevami-home (102 commits)")[![YomesInc](https://avatars.githubusercontent.com/u/1785648?v=4)](https://github.com/YomesInc "YomesInc (50 commits)")[![m0she](https://avatars.githubusercontent.com/u/492330?v=4)](https://github.com/m0she "m0she (49 commits)")[![tocker](https://avatars.githubusercontent.com/u/346642?v=4)](https://github.com/tocker "tocker (32 commits)")[![itaibenari](https://avatars.githubusercontent.com/u/498228?v=4)](https://github.com/itaibenari "itaibenari (25 commits)")[![nadavs](https://avatars.githubusercontent.com/u/824859?v=4)](https://github.com/nadavs "nadavs (23 commits)")[![cloudinaraz](https://avatars.githubusercontent.com/u/38750776?v=4)](https://github.com/cloudinaraz "cloudinaraz (12 commits)")[![shedar](https://avatars.githubusercontent.com/u/477298?v=4)](https://github.com/shedar "shedar (10 commits)")[![konforti](https://avatars.githubusercontent.com/u/141335?v=4)](https://github.com/konforti "konforti (10 commits)")[![nadavofir](https://avatars.githubusercontent.com/u/6484765?v=4)](https://github.com/nadavofir "nadavofir (6 commits)")[![isleshocky77](https://avatars.githubusercontent.com/u/361586?v=4)](https://github.com/isleshocky77 "isleshocky77 (6 commits)")[![marissa-masangcay](https://avatars.githubusercontent.com/u/13194128?v=4)](https://github.com/marissa-masangcay "marissa-masangcay (5 commits)")[![abishekrsrikaanth](https://avatars.githubusercontent.com/u/1639302?v=4)](https://github.com/abishekrsrikaanth "abishekrsrikaanth (3 commits)")[![leptians](https://avatars.githubusercontent.com/u/3425903?v=4)](https://github.com/leptians "leptians (3 commits)")[![IonBazan](https://avatars.githubusercontent.com/u/1985514?v=4)](https://github.com/IonBazan "IonBazan (3 commits)")[![holtkamp](https://avatars.githubusercontent.com/u/776405?v=4)](https://github.com/holtkamp "holtkamp (3 commits)")[![mikeys](https://avatars.githubusercontent.com/u/1187953?v=4)](https://github.com/mikeys "mikeys (2 commits)")[![TalLevAmi](https://avatars.githubusercontent.com/u/66755?v=4)](https://github.com/TalLevAmi "TalLevAmi (2 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (2 commits)")

---

Tags

cloudinarycloudinary-apicloudinary-php-sdkcloudinary-sdkhacktoberfestimage-manipulationphp-librarysdk-phpvideo-manipulationsdkcloudcloudinarycdnimage management

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/cloudinary-cloudinary-php/health.svg)

```
[![Health](https://phpackages.com/badges/cloudinary-cloudinary-php/health.svg)](https://phpackages.com/packages/cloudinary-cloudinary-php)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k511.3M2.2k](/packages/aws-aws-sdk-php)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[uploadcare/uploadcare-php

Uploadcare PHP integration handles uploads and further operations with files by wrapping Upload and REST APIs.

1022.5M6](/packages/uploadcare-uploadcare-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
