PHPackages                             vjik/linkify - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vjik/linkify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vjik/linkify
============

Matches things like email addresses, web URLs, etc. in the text and makes them clickable links.

1.0.0(4y ago)7271BSD-3-ClausePHPPHP ^7.4|^8.0

Since Mar 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/vjik/linkify)[ Packagist](https://packagist.org/packages/vjik/linkify)[ RSS](/packages/vjik-linkify/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Linkify
=======

[](#linkify)

[![Latest Stable Version](https://camo.githubusercontent.com/0ef0fdeb1f478c8d9972666c58777a3dd1472222aeb883facd65195521209c34/68747470733a2f2f706f7365722e707567782e6f72672f766a696b2f6c696e6b6966792f762f737461626c652e706e67)](https://packagist.org/packages/vjik/linkify)[![Total Downloads](https://camo.githubusercontent.com/fa7cdb548223ef91f524a626aded41728e4767948477e25273c11c089e348865/68747470733a2f2f706f7365722e707567782e6f72672f766a696b2f6c696e6b6966792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/vjik/linkify)[![Build status](https://github.com/vjik/linkify/workflows/build/badge.svg)](https://github.com/vjik/linkify/actions?query=workflow%3Abuild)[![Mutation testing badge](https://camo.githubusercontent.com/a8336cc5e52f8c8e3f4a7cac107c9bb4d7beef912ace82746ec10f2b4f4e28ac/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246766a696b2532466c696e6b6966792532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/vjik/linkify/master)[![static analysis](https://github.com/vjik/linkify/workflows/static%20analysis/badge.svg)](https://github.com/vjik/linkify/actions?query=workflow%3A%22static+analysis%22)

The package provide `Linkify` class that matches things like email addresses, web URLs, etc. in the text and makes them clickable links.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher.

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

[](#installation)

The package could be installed with [composer](https://getcomposer.org/download/):

```
composer require vjik/linkify --prefer-dist
```

General usage
-------------

[](#general-usage)

```
$linkify = new \Vjik\Linkify\Linkify(
    new \Vjik\Linkify\HttpPattern(),
    new \Vjik\Linkify\EmailPattern(),
);

$text = 'Contacts: https://example.com, info@example.com.';

$result = $linkify->process($text);
```

`$result` will be:

```
Contacts: example.com, info@example.com.
```

Testing
-------

[](#testing)

### Unit testing

[](#unit-testing)

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```
./vendor/bin/phpunit
```

### Mutation testing

[](#mutation-testing)

The package tests are checked with [Infection](https://infection.github.io/) mutation framework with [Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:

```
./vendor/bin/roave-infection-static-analysis-plugin
```

### Static analysis

[](#static-analysis)

The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:

```
./vendor/bin/psalm
```

License
-------

[](#license)

The Linkify is free software. It is released under the terms of the BSD License. Please see [`LICENSE`](./LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1524d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53e5ee1dedd50f71e4aeeac2929f786cdfb400359d4776e6cd806388d0d5df2c?d=identicon)[vjik](/maintainers/vjik)

---

Top Contributors

[![vjik](https://avatars.githubusercontent.com/u/525501?v=4)](https://github.com/vjik "vjik (7 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vjik-linkify/health.svg)

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

###  Alternatives

[hryvinskyi/magento2-deferjs

N/A

1430.1k](/packages/hryvinskyi-magento2-deferjs)[lasselehtinen/laravel-conventions-checker

grumphp config to automatically check conventions for Laravel projects

2210.4k4](/packages/lasselehtinen-laravel-conventions-checker)[omar-haris/filament-timezone-field

A Laravel Filament component that enables users to choose a specific timezone grouped by regions, with support for multiple languages.

1613.5k1](/packages/omar-haris-filament-timezone-field)

PHPackages © 2026

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