alb / twig-shell-bundle
Provides a simple Twig REPL
Installs: 2 434
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 4
Forks: 0
Open Issues: 0
This package is auto-updated.
Last update: 2024-12-23 06:33:04 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(), ); }