PHPackages                             jacerider/neo\_twig - 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. jacerider/neo\_twig

ActiveDrupal-module[Templating &amp; Views](/categories/templating)

jacerider/neo\_twig
===================

Provides twig helpers.

1.0.20(4mo ago)03961proprietaryPHP

Since Aug 27Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/jacerider/neo_twig)[ Packagist](https://packagist.org/packages/jacerider/neo_twig)[ Docs](https://github.com/jacerider/neo_twig)[ RSS](/packages/jacerider-neo-twig/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (1)Versions (22)Used By (1)

CONTENTS OF THIS FILE
---------------------

[](#contents-of-this-file)

- Introduction
- Requirements
- Installation
- Tools

INTRODUCTION
------------

[](#introduction)

Provides twig helpers for Drupal.

REQUIREMENTS
------------

[](#requirements)

This module requires no modules outside of Drupal core.

INSTALLATION
------------

[](#installation)

Install as you would normally install a contributed Drupal module. Visit  for further information.

TOOLS
-----

[](#tools)

Class
-----

[](#class)

Add a class to an element.

```
{{ field_image|neo_class('bg-base-500') }}
```

Class to Children
-----------------

[](#class-to-children)

Add a class to an children of a renderable.

```
{{ field_images|neo_child_class('bg-base-500') }}
```

You can also target nested elements within a child by defining the path to the nested element.

```
{{ field_images|neo_child_class('bg-base-500', ['images', 'image', '#attributes']) }}
```

Children
--------

[](#children)

Get children of a content field.

```

  {% for tag in content.field_tags|neo_children %}
    {{ tag }}
  {% endfor %}

```

Field
-----

[](#field)

Render a field from a nested entity reference field.

```
{% for key, item in content.field_reference|neo_children %}
  {{ item|neo_field('field_image') }}
{% endfor %}
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance74

Regular maintenance activity

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

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

Every ~23 days

Recently: every ~30 days

Total

21

Last Release

144d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/097ea6514c7dff8bd82162fe88411080a14444a73f86c15ab22eefe28a33059d?d=identicon)[jacerider](/maintainers/jacerider)

---

Top Contributors

[![jacerider](https://avatars.githubusercontent.com/u/638651?v=4)](https://github.com/jacerider "jacerider (23 commits)")

### Embed Badge

![Health badge](/badges/jacerider-neo-twig/health.svg)

```
[![Health](https://phpackages.com/badges/jacerider-neo-twig/health.svg)](https://phpackages.com/packages/jacerider-neo-twig)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[nystudio107/craft-twigpack

Twigpack is a bridge between Twig and webpack, with manifest.json &amp; webpack-dev-server HMR support

97341.4k17](/packages/nystudio107-craft-twigpack)

PHPackages © 2026

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