PHPackages                             bearlikelion/twig-jsontools - 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. bearlikelion/twig-jsontools

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

bearlikelion/twig-jsontools
===========================

A Twig extension to encode and decode json.

1.0.0(11y ago)13.6k4MITPHPPHP &gt;=5.3.0

Since Aug 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bearlikelion/twig-jsontools)[ Packagist](https://packagist.org/packages/bearlikelion/twig-jsontools)[ RSS](/packages/bearlikelion-twig-jsontools/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Twig Json Tools
===============

[](#twig-json-tools)

A simple twig extension to provide json encode and decode filters and functions for Twig.

**Requirements:**

- [Twig](https://github.com/twigphp/Twig)

Installation
------------

[](#installation)

```
"require": {
	"bearlikelion/twig-jsontools": "dev-master",
}

```

Example
-------

[](#example)

```
$twig = new \Twig\Environment(new \Twig\Loader\FilesystemLoader('Views'));
$twig->addExtension(new Bearlikelion\TwigJsonTools\Extension());
```

```

		{{ json_decode(json.object) }}

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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

4273d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01d4559bff863b2e16ce21f595b3f031ce02c2b631aede3c70e4aa83e09b4aa7?d=identicon)[bearlikelion](/maintainers/bearlikelion)

---

Top Contributors

[![bearlikelion](https://avatars.githubusercontent.com/u/3298808?v=4)](https://github.com/bearlikelion "bearlikelion (5 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (3 commits)")[![jlebherz](https://avatars.githubusercontent.com/u/20497503?v=4)](https://github.com/jlebherz "jlebherz (1 commits)")

---

Tags

jsontwigextension

### Embed Badge

![Health badge](/badges/bearlikelion-twig-jsontools/health.svg)

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

###  Alternatives

[shoot/shoot

Shoot aims to make providing data to your templates more manageable

41229.9k2](/packages/shoot-shoot)[redant/twig-components

Define reusable components in Twig.

3819.8k1](/packages/redant-twig-components)[umanit/twig-image-extension

An extension to facilitate the integration of responsive images' markup in Twig templates.

1042.2k](/packages/umanit-twig-image-extension)

PHPackages © 2026

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