PHPackages                             e-monsite/color-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. e-monsite/color-twig-extension

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

e-monsite/color-twig-extension
==============================

Manipulate colors with twig

v2.2.1(4y ago)031.0k↓41.7%MITPHPPHP ^7.3|^8.0

Since Nov 13Pushed 4y ago1 watchersCompare

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

READMEChangelog (8)Dependencies (4)Versions (9)Used By (0)

Color Twig Extension
====================

[](#color-twig-extension)

install
-------

[](#install)

```
composer require e-monsite/color-twig-extension
```

Then add the bundle to yours bundles if you are on Symfony:

```
// config/bundles.php
return [
    Emonsite\ColorTwigExtension\ColorExtensionBundle::class => ['all' => true],
];
```

Usage
-----

[](#usage)

There is some examples:

```
{{ 'rgb(138, 7, 7)' | darken(20) }}
{{ '#8a0707' | lighten(40) }}
{{ 'green' | alpha(0.5) }}
{% if myColor is dark %} ... {% endif %}
{% if myColor2 is light %} ... {% endif %}
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~98 days

Recently: every ~168 days

Total

8

Last Release

1687d ago

Major Versions

v1.3 → v2.12020-04-21

PHP version history (2 changes)v1.0PHP ^7.3

v2.2.1PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/020e5c8afb7cb01052109e43316d1623965e27ae44c917933a09c1f8fa51307b?d=identicon)[johndodev](/maintainers/johndodev)

---

Top Contributors

[![johndodev](https://avatars.githubusercontent.com/u/2741956?v=4)](https://github.com/johndodev "johndodev (1 commits)")

---

Tags

colorstwig-extensiontwigcolore-monsiteemonsite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/e-monsite-color-twig-extension/health.svg)

```
[![Health](https://phpackages.com/badges/e-monsite-color-twig-extension/health.svg)](https://phpackages.com/packages/e-monsite-color-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)
