liip/LiipUrlAutoConverterBundle

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

UNMAINTAINED

This bundle is no longer maintained. Feel free to fork it if needed.

LiipUrlAutoConverterBundle

Latest Stable Version Latest Unstable Version Total Downloads Build Status

About

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.

Installation
  1. Add this bundle to your composer.json:

    $ php composer.phar require liip/url-auto-converter-bundle:dev-master
    
  2. Add this bundle to your application's kernel:

    // application/ApplicationKernel.php
    public function registerBundles()
    {
      return array(
          // ...
          new Liip\UrlAutoConverterBundle\LiipUrlAutoConverterBundle(),
          // ...
      );
    }
    
Configuration

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.

Usage

This library adds a filter for twig templates that can be used like:

{{ "sometexttofindaurl www.liip.ch inside" | converturls }}
License

See LICENSE.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.