Name: LiipUrlAutoConverterBundle
Owner: Liip
Description: [DEPRECATED] This bundle will add a Twig Extension for templates with a new filter for automatically converting urls and emails in a string to html links
Created: 2011-10-26 10:56:12.0
Updated: 2018-03-27 12:34:22.0
Pushed: 2017-12-05 09:38:32.0
Homepage: http://liip.ch
Size: 48
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This bundle is no longer maintained. Feel free to fork it if needed.
This bundle adds a Twig Extension with a filter for automatically converting urls and emails in a string to html links. In the Format: “liip.ch” for urls or “info@liip.ch” for emails.
Add this bundle to your composer.json:
$ php composer.phar require liip/url-auto-converter-bundle:dev-master
Add this bundle to your application's kernel:
// application/ApplicationKernel.php
public function registerBundles()
{
return array(
// ...
new Liip\UrlAutoConverterBundle\LiipUrlAutoConverterBundle(),
// ...
);
}
The supported options for the LiipUrlAutoConverterBundle are: (put in /app/config/config.yml)
liip_url_auto_converter:
linkclass:
target: _blank
debugmode: false
All settings are optional.
This library adds a filter for twig templates that can be used like:
{{ "sometexttofindaurl www.liip.ch inside" | converturls }}
See LICENSE
.