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

v3.0.0(2mo ago)032.8k↓26.9%MITPHPPHP ^7.3|^8.0CI failing

Since Nov 13Pushed 2mo agoCompare

[ 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 today

READMEChangelog (10)Dependencies (8)Versions (11)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

52

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~261 days

Recently: every ~548 days

Total

10

Last Release

72d ago

Major Versions

v1.3 → v2.12020-04-21

v2.2.2 → v3.0.02026-04-22

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

[![gaetanlefevre-ems](https://avatars.githubusercontent.com/u/82883049?v=4)](https://github.com/gaetanlefevre-ems "gaetanlefevre-ems (2 commits)")[![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

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[symfony/ux-twig-component

Twig components for Symfony

22018.6M356](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1647.0M128](/packages/symfony-ux-live-component)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

16126.1k1](/packages/symfony-ux-toolkit)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

262.6k](/packages/mati365-ckeditor5-symfony)

PHPackages © 2026

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