PHPackages                             lidaa/twig-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. lidaa/twig-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

lidaa/twig-bundle
=================

LidaaTwigBundle will add a lot of Twig Extensions (php, image, url, css, js, tag, session, number, sf, unset, form, html, ...)

2.0.10(13y ago)24172MITPHPPHP &gt;=5.3.2

Since Sep 13Pushed 12y ago2 watchersCompare

[ Source](https://github.com/lidaa/LidaaTwigBundle)[ Packagist](https://packagist.org/packages/lidaa/twig-bundle)[ Docs](https://github.com/lidaa/LidaaTwigBundle)[ RSS](/packages/lidaa-twig-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/1b988b99ca8df949e71c9943b69207fa8e2b4cdc0087dea4d35d19846dad1130/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c696461612f4c696461615477696742756e646c652e706e67)](http://travis-ci.org/lidaa/LidaaTwigBundle)

Provides a lot of Twig Extensions.

(php, image, link, css, js, tag, session, number, sf, unset, form, html, ...)

Requirement
===========

[](#requirement)

- Twig version 1.5 or later
- Symfony version 2.0.9 or later

Installation
============

[](#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:
===========

[](#extensions)

- PhpExtension (see documentation : [/Resources/doc/php](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/php.rst))
- ImageExtension (see documentation : [/Resources/doc/image](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/image.rst))
- LinkExtension (see documentation : [/Resources/doc/url](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/link.rst))
- CssExtension (see documentation : [/Resources/doc/css](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/css.rst))
- JsExtension (see documentation : [/Resources/doc/js](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/js.rst))
- TagExtension (see documentation : [/Resources/doc/tag](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/tag.rst))
- SessionExtension (see documentation : [/Resources/doc/session](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/session.rst))
- NumberExtension (see documentation : [/Resources/doc/number](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/number.rst))
- SfExtension (see documentation : [/Resources/doc/sf](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/sf.rst))
- UnsetExtension (see documentation : [/Resources/doc/unset](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/unset.rst))
- FormExtension (see documentation : [/Resources/doc/form](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/form.rst))
- HtmlExtension (see documentation : [/Resources/doc/html](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/html.rst))
- TextExtension (see documentation : [/Resources/doc/text](https://github.com/lidaa/LidaaTwigBundle/blob/master/Resources/doc/text.rst))

TODO:
=====

[](#todo)

- Add DateExtension
- Add ajax and highligh to JsExtension

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

5037d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/767886?v=4)[Lidaa](/maintainers/lidaa)[@lidaa](https://github.com/lidaa)

---

Tags

twigSymfony2

### Embed Badge

![Health badge](/badges/lidaa-twig-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/lidaa-twig-bundle/health.svg)](https://phpackages.com/packages/lidaa-twig-bundle)
```

###  Alternatives

[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.6M127](/packages/timber-timber)[twig/intl-extra

A Twig extension for Intl

36567.2M320](/packages/twig-intl-extra)[symfony/ux-twig-component

Twig components for Symfony

22017.2M313](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1636.5M115](/packages/symfony-ux-live-component)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22919.7M81](/packages/twig-cssinliner-extra)[twig/inky-extra

A Twig extension for the inky email templating engine

16613.2M70](/packages/twig-inky-extra)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
