PHPackages                             manuelodelain/linkify-twig-extension - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. manuelodelain/linkify-twig-extension

ActiveLibrary[Templating &amp; Views](/categories/templating)

manuelodelain/linkify-twig-extension
====================================

Twig extension for Linkify - converts URLs and email addresses into HTML links

2.0(6y ago)572.6k↓25%MITPHP

Since Feb 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/manuelodelain/linkify-twig-extension)[ Packagist](https://packagist.org/packages/manuelodelain/linkify-twig-extension)[ RSS](/packages/manuelodelain-linkify-twig-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Linkify Twig extension
======================

[](#linkify-twig-extension)

Use [Linkify](https://github.com/misd-service-development/php-linkify) in your twig template.

Installation
------------

[](#installation)

Using Composer: `composer require manuelodelain/linkify-twig-extension`

Usage
-----

[](#usage)

```
use manuelodelain\Twig\Extension\LinkifyExtension;
use Twig\Environment;

$twig = new Environment(...);

$twig->addExtension(new LinkifyExtension());

```

```
{{ 'Lorem ipsum ... www.website.com ...'|linkify }}

```

Will output:

```
Lorem ipsum ... www.website.com ...

```

Don't forget to apply the `raw` filter for an HTML output:

```
{{ 'Lorem ipsum ... www.website.com ...'|linkify|raw }}

```

Options
-------

[](#options)

As Linkify, set default options at the instanciation or at the method call.

At the instanciation (applied to all links):

```
use manuelodelain\Twig\Extension\LinkifyExtension;

$twig = new Environment(...);

$twig->addExtension(new LinkifyExtension(array('attr' => array('target' => '_blank'))));

```

At the method call:

```
{{ 'Lorem ipsum ... www.website.com ...'|linkify({"attr": {"target": "_blank"}}) }}

```

Will output:

```
Lorem ipsum ... www.website.com ...

```

[See the Linkify options](https://github.com/misd-service-development/php-linkify#options)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 58.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~703 days

Total

3

Last Release

2349d ago

Major Versions

1.0.1 → 2.02019-12-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/669076f4bd723d800471ef13f09a6bec87dfa74713e3e54e186c972fdb17f5af?d=identicon)[manuelodelain](/maintainers/manuelodelain)

---

Top Contributors

[![manuelodelain](https://avatars.githubusercontent.com/u/4610549?v=4)](https://github.com/manuelodelain "manuelodelain (7 commits)")[![Ballistiks](https://avatars.githubusercontent.com/u/105979162?v=4)](https://github.com/Ballistiks "Ballistiks (5 commits)")

### Embed Badge

![Health badge](/badges/manuelodelain-linkify-twig-extension/health.svg)

```
[![Health](https://phpackages.com/badges/manuelodelain-linkify-twig-extension/health.svg)](https://phpackages.com/packages/manuelodelain-linkify-twig-extension)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
