Download the PHP package lidaa/twig-bundle without Composer
On this page you can find all versions of the php package lidaa/twig-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lidaa/twig-bundle
More information about lidaa/twig-bundle
Files in lidaa/twig-bundle
Package twig-bundle
Short Description LidaaTwigBundle will add a lot of Twig Extensions (php, image, url, css, js, tag, session, number, sf, unset, form, html, ...)
License MIT
Homepage https://github.com/lidaa/LidaaTwigBundle
Informations about the package twig-bundle
Provides a lot of Twig Extensions.
(php, image, link, css, js, tag, session, number, sf, unset, form, html, ...)
Requirement
- Twig version 1.5 or later
- Symfony version 2.0.9 or later
Installation
1- Add the following lines in your deps file:
[LidaaTwigBundle]
git=git://github.com/lidaa/LidaaTwigBundle.git
target=/bundles/Lidaa/TwigBundle
2- Now, run the vendors script to download the bundle:
$ php bin/vendors install
3- Add LidaaTwigBundle to your application kernel:
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Lidaa\TwigBundle\LidaaTwigBundle(),
// ...
);
}
4- Add the 'Lidaa' namespace to your autoloader:
// app/autoload.php
$loader->registerNamespaces(array(
//...
'Lidaa' => __DIR__.'/../vendor/bundles',
//...
));
Extensions:
-
PhpExtension (see documentation : /Resources/doc/php)
-
ImageExtension (see documentation : /Resources/doc/image)
-
LinkExtension (see documentation : /Resources/doc/url)
-
CssExtension (see documentation : /Resources/doc/css)
-
JsExtension (see documentation : /Resources/doc/js)
-
TagExtension (see documentation : /Resources/doc/tag)
-
SessionExtension (see documentation : /Resources/doc/session)
-
NumberExtension (see documentation : /Resources/doc/number)
-
SfExtension (see documentation : /Resources/doc/sf)
-
UnsetExtension (see documentation : /Resources/doc/unset)
-
FormExtension (see documentation : /Resources/doc/form)
-
HtmlExtension (see documentation : /Resources/doc/html)
- TextExtension (see documentation : /Resources/doc/text)
TODO:
- Add DateExtension
- Add ajax and highligh to JsExtension