Skip to content

Json encode and decode filters and functions for Twig

Notifications You must be signed in to change notification settings

jlebherz/twig-jsontools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Twig Json Tools

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

Requirements:

Installation

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

Example

$twig = new Twig_Environment(new Twig_Loader_Filesystem('Views'));
$twig->addExtension(new Bearlikelion\TwigJsonTools\Extension);
<html>
	<body>
		{{ json_decode(json.object) }}
	</body>
</html>

About

Json encode and decode filters and functions for Twig

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%