alb/twig-shell-bundle

Provides a simple Twig REPL

Installs: 2 436

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 3

Forks: 0

Open Issues: 0

pkg:composer/alb/twig-shell-bundle

0.1.0 2013-01-19 12:52 UTC

This package is auto-updated.

Last update: 2025-09-23 07:58:34 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(),
    );
}