PHPackages                             teraone/cloudinary-twig-extension - 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. [Templating &amp; Views](/categories/templating)
4. /
5. teraone/cloudinary-twig-extension

ActiveLibrary[Templating &amp; Views](/categories/templating)

teraone/cloudinary-twig-extension
=================================

cloudinary twig extension

1.0.2(10y ago)02.7k[1 PRs](https://github.com/teraone/cloudinary-twig-extension/pulls)MITPHPCI passing

Since Jun 25Pushed 8mo ago4 watchersCompare

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

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Cloudinary extension for TWIG
=============================

[](#cloudinary-extension-for-twig)

This package provides the Cloudinary helper functions to twig.

Installation
============

[](#installation)

```
composer require teraone/cloudinary-twig-extension

```

You will need to define your cloudinary configuration first

```
Cloudinary::config_from_url('ENTER YOUR CLOUDINARY URL HERE');

$twig = new Twig_Environment($loader);
$twig->addExtension(new Teraone\Twig\Extension\CloudinaryExtension());

```

Usage
=====

[](#usage)

To display an image in your view simply use this tag

```
{{ cl_image_tag("sample.jpg", {"alt" : "Sample Image" }) }}

```

To specify a specific image size you can use this tag

```
{{ cl_image_tag("sample.jpg", { "width" : 100, "height" : 150, "crop" : "fill", "html_width" : 50, "html_height" : 75}) }}

```

You can add all options as described here [http://cloudinary.com/documentation/php\_image\_manipulation](http://cloudinary.com/documentation/php_image_manipulation)

Tests
=====

[](#tests)

If you want to test this lib please add your cloudinary URL to phpunit.xml.dist

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance43

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~133 days

Total

3

Last Release

3714d ago

Major Versions

0.2 → 1.0.12016-03-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/34bb3ed24e78987d5f89cff121c51fd55070a90f2887eba16583a78cb77acb50?d=identicon)[teraone](/maintainers/teraone)

---

Top Contributors

[![riaf](https://avatars.githubusercontent.com/u/29904?v=4)](https://github.com/riaf "riaf (3 commits)")[![ertogs](https://avatars.githubusercontent.com/u/1944530?v=4)](https://github.com/ertogs "ertogs (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/teraone-cloudinary-twig-extension/health.svg)

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91492.0M315](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36763.2M221](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

22046.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22918.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21914.8M162](/packages/symfony-ux-twig-component)

PHPackages © 2026

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