alb/twig-shell-bundle

Provides a simple Twig REPL

0.1.0 2013-01-19 12:52 UTC

This package is auto-updated.

Last update: 2024-04-23 05:09:29 UTC


README

Provides a simple Twig REPL

Example

$ ./app/console twig:shell
twig > 512*2
1024
twig > 512*2|number_format()
1024
twig > (512*2)|number_format()
1,024
twig >

Install

$ composer require alb/twig-shell-bundle:*

Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Alb\TwigShellBundle\AlbTwigShellBundle(),
    );
}