2017 © Pedro Peláez
 

symfony-bundle linkify-bundle

Converts URLs and email addresses in text into HTML links

image

misd/linkify-bundle

Converts URLs and email addresses in text into HTML links

  • Monday, August 22, 2016
  • by thewilkybarkid
  • Repository
  • 5 Watchers
  • 3 Stars
  • 41,008 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 7 Versions
  • 4 % Grown

The README.md

LinkifyBundle

Build Status, (*1)

Adds Linkify to your Symfony application, which converts URLs and email addresses in HTML (or plain text) to HTML links., (*2)

Installation

  1. Add the LinkifyBundle to your dependencies:, (*3)

    $ composer require misd/linkify-bundle
  2. Register the bundle in your application:, (*4)

    // app/AppKernel.php
    
    class AppKernel extends Kernel
    {
        // ...
        public function registerBundles()
        {
            $bundles = array(
                // ...
                new Misd\LinkifyBundle\MisdLinkifyBundle(),
                // ...
            );
        }
        // ...
    }

Usage

Use the service:, (*5)

$text = $this->container->get('misd.linkify')->process('This is my text containing a link to www.example.com.');

In a Twig template:, (*6)

{{ "This is my text containing a link to www.example.com."|linkify }}

In a PHP template:, (*7)

<?php echo $view['linkify']->process('This is my text containing a link to www.example.com.') ?>

Options

Requires Linkify v1.1.1 or newer., (*8)

An array of options can be passed (see the Linkify docs for futher details). So to add the link class to created links:, (*9)

Using the service:, (*10)

$text = $this->container->get('misd.linkify')->process('This is my text containing a link to www.example.com.', array('attr' => array('class' => 'link')));

In a Twig template:, (*11)

{{ "This is my text containing a link to www.example.com."|linkify({'attr': {'class': 'link'}}) }}

In a PHP template:, (*12)

<?php echo $view['linkify']->process('This is my text containing a link to www.example.com.', array('attr' => array('class' => 'link'))) ?>

The Versions

22/08 2016

dev-master

9999999-dev https://github.com/misd-service-development/linkify-bundle

Converts URLs and email addresses in text into HTML links

  Sources   Download

MIT

The Requires

 

The Development Requires

url bundle link convert email address

22/08 2016

v1.0.5

1.0.5.0 https://github.com/misd-service-development/linkify-bundle

Converts URLs and email addresses in text into HTML links

  Sources   Download

MIT

The Requires

 

The Development Requires

url bundle link convert email address

02/04 2013

v1.0.4

1.0.4.0 https://github.com/misd-service-development/linkify-bundle

Converts URLs and email addresses in text into HTML links

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Wilkinson

url bundle link convert email address

06/03 2013

v1.0.3

1.0.3.0 https://github.com/misd-service-development/linkify-bundle

Converts URLs and email addresses in text into HTML links

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Wilkinson

url bundle link convert email address

20/11 2012

v1.0.2

1.0.2.0 https://github.com/misd-service-development/linkify-bundle

Converts URLs and email addresses in text into HTML links

  Sources   Download

MIT

The Requires

 

by Chris Wilkinson

url bundle link convert email address

07/11 2012

v1.0.1

1.0.1.0 https://github.com/misd-service-development/linkify-bundle

Converts URLs and email addresses in text into HTML links

  Sources   Download

MIT

The Requires

 

by Chris Wilkinson

url bundle link convert email address

09/10 2012

v1.0.0

1.0.0.0 https://github.com/misd-service-development/linkify-bundle

Converts URLs and email addresses in text into HTML links

  Sources   Download

MIT

The Requires

 

by Chris Wilkinson

url bundle link convert email address