mapado/twig-extensions-bundle
最新稳定版本:v1.0.0
Composer 安装命令:
composer require mapado/twig-extensions-bundle
包简介
Provides some Twig extensions for your project.
README 文档
README
MapadoTwigExtensionsBundle is just a collection of useful Twig extensions.
This bundle should be used in conjunction with Symfony2.
ParseUrl Filter
Provides an parse_url filter, to parse an url.
A call to parse_url is made.
{{ someUrl | parse_url('host') }}
Will return the host of someUrl (or false if not found).
Installation
Get the bundle
Add this in your composer.json
{
"require": {
"mapado/twig-extensions-bundle": "dev-master"
}
}
and then run
php composer.phar update
or
composer update
if you installed composer globally.
Enable the bundle
// in app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Mapado\TwigExtensionsBundle\MapadoTwigExtensionsBundle(), ); // ... }
统计信息
- 总下载量: 20.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-01-18