PHPackages                             misteio/cloudinary-bundle - 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. [API Development](/categories/api)
4. /
5. misteio/cloudinary-bundle

ActiveSymfony-bundle[API Development](/categories/api)

misteio/cloudinary-bundle
=========================

Cloudinary Wrapper

v0.2(9y ago)830.8k4MITPHPPHP &gt;=5.4

Since Jul 16Pushed 8y ago2 watchersCompare

[ Source](https://github.com/misteio/CloudinaryBundle)[ Packagist](https://packagist.org/packages/misteio/cloudinary-bundle)[ Docs](https://github.com/misteio/CloudinaryBundle)[ RSS](/packages/misteio-cloudinary-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

MisteioCloudinaryBundle
=======================

[](#misteiocloudinarybundle)

[![Latest Stable Version](https://camo.githubusercontent.com/d8af5ecf190177f7766f198ee98d6d51c9aab5391fea80de92d4dbe291be2bdc/68747470733a2f2f706f7365722e707567782e6f72672f6d69737465696f2f636c6f7564696e6172792d62756e646c652f762f737461626c65)](https://packagist.org/packages/misteio/cloudinary-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/71d8ebc76aadde0820bd03b964ba6612f1fafd4282bcff35625f6da68eaa0fd9/68747470733a2f2f706f7365722e707567782e6f72672f6d69737465696f2f636c6f7564696e6172792d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/misteio/cloudinary-bundle)[![License](https://camo.githubusercontent.com/69dc931506eee726152f3ed4ea9128b34113cd189d4ae6785a1067516643a823/68747470733a2f2f706f7365722e707567782e6f72672f6d69737465696f2f636c6f7564696e6172792d62756e646c652f6c6963656e7365)](https://packagist.org/packages/misteio/cloudinary-bundle)[![Build Status](https://camo.githubusercontent.com/b757049b04990a427df84de971af21045f82daa9a45e5239fa73a1eb89b6f06b/68747470733a2f2f7472617669732d63692e6f72672f6d69737465696f2f436c6f7564696e61727942756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/misteio/CloudinaryBundle)[![Code Climate](https://camo.githubusercontent.com/9ced85f8f07ef456ac74a0a021b68f77570634ea431fb57d7c16e29545c865d7/68747470733a2f2f636f6465636c696d6174652e636f6d2f7265706f732f3538366432626439666136613934336539373030316263352f6261646765732f33366239373262376133313132336538643233352f6770612e737667)](https://codeclimate.com/repos/586d2bd9fa6a943e97001bc5/feed)

MisteioCloudinaryBundle is a Symfony2/3 Bundle forked from laravel4-cloudinary (thanks [Teeplus](https://github.com/teepluss/laravel4-cloudinary)) and cloudinary-bundle (thanks [Speicher210](https://github.com/Speicher210/CloudinaryBundle)). You can use it as a service, and some extends are implemented for Twig. [Cloudinary Library v1.7.1](http://cloudinary.com/documentation/php_integration).

Install
-------

[](#install)

Via Composer

```
$ composer require misteio/cloudinary-bundle
```

or in composer.json file

```
"misteio/cloudinary-bundle": "dev-master"
```

Register the bundle in `app/AppKernel.php`:

```
public function registerBundles()
{
    return array(
        // ...
        new Misteio\CloudinaryBundle\MisteioCloudinaryBundle(),
        // ...
    );
}
```

Configuration
-------------

[](#configuration)

Configure the connection to cloudinary in your `config.yml` :

```
misteio_cloudinary:
  cloud_name: yourCloudRegistrationName
  api_key: yourApiKey
  secret_key: yourSecretApiKey
```

Usage
-----

[](#usage)

This wrapper api provide simple methods to upload, rename, delete, tag manage and full features from original cloudinary class methods. You can use it via Dependency Injection Component(DIC) service.

```
	$cloudinary = $this -> container -> get('misteio_cloudinary_wrapper');
```

Upload Image

```
	$cloudinary -> upload('path/to/file', 'name', $tags, $options)
```

Upload Video (Latest argument is for large files)

```
	$cloudinary -> uploadVideo('path/to/file', 'name', $tags, true)
```

Display an image

```
	$cloudinary -> show('public_name', array('width' => 150, 'height' => 150, 'crop' => 'fit', 'radius' => 20));
```

Display an image using HTTPS

```
  $cloudinary -> show('public_name', array('width' => 150, 'height' => 150, 'crop' => 'fit', 'radius' => 20, 'secure' => true));
```

Display a video

```
	$cloudinary -> showVideo('public_name', array('width' => 150, 'height' => 150, 'crop' => 'fit', 'radius' => 20));
```

Display a video using HTTPS

```
  $cloudinary -> showVideo('public_name', array('width' => 150, 'height' => 150, 'crop' => 'fit', 'radius' => 20, 'secure' => true));
```

> More document from [cloudinary.com](http://cloudinary.com/documentation/image_transformations)

Rename file

```
	$cloudinary -> rename('from_public_id', 'to_public_id');
```

Delete file

```
	$cloudinary -> destroy('public_id');
```

Manage with tag

```
    $cloudinary -> addTag('my_tag_1', array('my_public_id', 'my_public_id_2'));
    $cloudinary -> removeTag('my_tag_2', array('my_public_id', 'my_public_id_2'));
    $cloudinary -> replaceTag('my_tag_3', array('my_public_id', 'public_id_2'));
```

Twig for displaying image
-------------------------

[](#twig-for-displaying-image)

```
	{{ 'my_public_id'|cloudinary_url({"width" : 150, "height" : 150, "crop" : "fill", "radius" : 20}) }}
```

Twig for displaying image using HTTPS
-------------------------------------

[](#twig-for-displaying-image-using-https)

```
  {{ 'my_public_id'|cloudinary_url({"width" : 150, "height" : 150, "crop" : "fill", "radius" : 20, "secure" : true}) }}
```

Twig for displaying video
-------------------------

[](#twig-for-displaying-video)

```
	{{ 'my_public_id'|cloudinary_url_video({"width" : 150, "height" : 150, "crop" : "fill", "radius" : 20}) }}
```

Twig for displaying video using HTTPS
-------------------------------------

[](#twig-for-displaying-video-using-https)

```
  {{ 'my_public_id'|cloudinary_url_video({"width" : 150, "height" : 150, "crop" : "fill", "radius" : 20, "secure" : true}) }}
```

Security
--------

[](#security)

If you discover a security vulnerability , please email instead of using the issue tracker. All security vulnerabilities will be promptly addressed.

### License

[](#license)

This Wrapper is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.2% of commits — single point of failure

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 ~538 days

Total

2

Last Release

3442d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c6563217e597039efd9d036e9e1551fcb07874a676723e28d39c85ada7d620b?d=identicon)[MisteIO](/maintainers/MisteIO)

---

Top Contributors

[![MisTe](https://avatars.githubusercontent.com/u/863895?v=4)](https://github.com/MisTe "MisTe (13 commits)")[![misteio](https://avatars.githubusercontent.com/u/1570940?v=4)](https://github.com/misteio "misteio (3 commits)")[![AndoniLarz](https://avatars.githubusercontent.com/u/11832242?v=4)](https://github.com/AndoniLarz "AndoniLarz (2 commits)")

---

Tags

apibundlecloudinarymisteio

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[harmbandstra/swagger-ui-bundle

Exposes swagger UI inside your Symfony project through a route (eg. /docs)

40881.6k](/packages/harmbandstra-swagger-ui-bundle)

PHPackages © 2026

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