PHPackages                             linnit/greentext - 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. linnit/greentext

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

linnit/greentext
================

A twig extension to create greentext

v1.0(6y ago)1330MITPHPPHP ^7.0CI failing

Since Oct 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/linnit/GreenText)[ Packagist](https://packagist.org/packages/linnit/greentext)[ RSS](/packages/linnit-greentext/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Greentext Extension
===================

[](#greentext-extension)

This is a Twig extension for Symfony Framework to make greentext green.

Installation for Symfony
========================

[](#installation-for-symfony)

```
composer require linnit/greentext
```

or update your composer.json

```
"require": {
    "linnit/greentext": "1.*"
}
```

Register an Extension as a Service
----------------------------------

[](#register-an-extension-as-a-service)

Add the extension to Symfony

```
# app/config/services.yml
    linnit.twig.greentext:
        class: Linnit\Twig\Extension\GreenTextExtension
        tags: ['twig.extension']
```

Usage
=====

[](#usage)

Standard greentext

```
{{ message|greentext }}
```

Specify your own colour

```
{{ message|greentext("#772953") }}
```

Testing
=======

[](#testing)

To test, just run phpunit

```
./vendor/phpunit/phpunit/phpunit
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2447d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9e118007b72686587bcd0cebf96b2077707722c4bc4c9edf01c6c8117e31b3e?d=identicon)[linnit](/maintainers/linnit)

---

Top Contributors

[![5quinque](https://avatars.githubusercontent.com/u/15974789?v=4)](https://github.com/5quinque "5quinque (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/linnit-greentext/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

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

Twig components for Symfony

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

Live components for Symfony

1647.0M117](/packages/symfony-ux-live-component)

PHPackages © 2026

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