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

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

mareksokol/twig-jsontools
=========================

A Twig extension to encode and decode json.

2.0.0(8y ago)2821MITPHPPHP &gt;=7.1.0

Since Aug 27Pushed 8y agoCompare

[ Source](https://github.com/mareksokol/twig-jsontools)[ Packagist](https://packagist.org/packages/mareksokol/twig-jsontools)[ RSS](/packages/mareksokol-twig-jsontools/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (3)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/fabpot/Twig)

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

[](#installation)

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

```

Example
-------

[](#example)

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

```

		{{ json_decode(json.object) }}

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~1193 days

Total

2

Last Release

3126d ago

Major Versions

1.0.0 → 2.0.02017-12-03

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=7.1.0

### Community

Maintainers

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

---

Top Contributors

[![bearlikelion](https://avatars.githubusercontent.com/u/3298808?v=4)](https://github.com/bearlikelion "bearlikelion (2 commits)")[![mareksokol](https://avatars.githubusercontent.com/u/12409688?v=4)](https://github.com/mareksokol "mareksokol (2 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (1 commits)")

---

Tags

jsontwigextension

### Embed Badge

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

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

###  Alternatives

[symfony/ux-twig-component

Twig components for Symfony

21917.2M304](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1636.5M113](/packages/symfony-ux-live-component)[tales-from-a-dev/twig-tailwind-extra

A Twig extension for Tailwind

36982.8k12](/packages/tales-from-a-dev-twig-tailwind-extra)[symfony/ux-toolkit

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

1682.8k1](/packages/symfony-ux-toolkit)[umanit/twig-image-extension

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

1043.8k](/packages/umanit-twig-image-extension)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

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

PHPackages © 2026

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