Download the PHP package misd/linkify-bundle without Composer
On this page you can find all versions of the php package misd/linkify-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download misd/linkify-bundle
More information about misd/linkify-bundle
Files in misd/linkify-bundle
Download misd/linkify-bundle
More information about misd/linkify-bundle
Files in misd/linkify-bundle
Vendor misd
Package linkify-bundle
Short Description Converts URLs and email addresses in text into HTML links
License MIT
Homepage https://github.com/misd-service-development/linkify-bundle
Package linkify-bundle
Short Description Converts URLs and email addresses in text into HTML links
License MIT
Homepage https://github.com/misd-service-development/linkify-bundle
Please rate this library. Is it a good library?
Informations about the package linkify-bundle
LinkifyBundle
Adds Linkify to your Symfony application, which converts URLs and email addresses in HTML (or plain text) to HTML links.
Installation
-
Add the LinkifyBundle to your dependencies:
$ composer require misd/linkify-bundle
-
Register the bundle in your application:
// app/AppKernel.php class AppKernel extends Kernel { // ... public function registerBundles() { $bundles = array( // ... new Misd\LinkifyBundle\MisdLinkifyBundle(), // ... ); } // ... }
Usage
Use the service:
$text = $this->container->get('misd.linkify')->process('This is my text containing a link to www.example.com.');
In a Twig template:
{{ "This is my text containing a link to www.example.com."|linkify }}
In a PHP template:
Options
Requires Linkify v1.1.1 or newer.
An array of options can be passed (see the Linkify docs for futher details). So to add the link
class to created links:
Using the service:
$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:
{{ "This is my text containing a link to www.example.com."|linkify({'attr': {'class': 'link'}}) }}
In a PHP template:
All versions of linkify-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.3.3 || ^7.0
symfony/framework-bundle Version ^2.1 || ^3.0
misd/linkify Version ^1.0
symfony/framework-bundle Version ^2.1 || ^3.0
misd/linkify Version ^1.0
The package misd/linkify-bundle contains the following files
Loading the files please wait ....