lidaa/twig-bundle
Composer 安装命令:
composer require lidaa/twig-bundle
包简介
LidaaTwigBundle will add a lot of Twig Extensions (php, image, url, css, js, tag, session, number, sf, unset, form, html, ...)
关键字:
README 文档
README
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
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-07-25