PHPackages                             theprivateer/clickable - 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. theprivateer/clickable

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

theprivateer/clickable
======================

A simple utility to convert URLs and emails in a string to clickable HTML anchors

v1.0.1(8y ago)023MITPHPPHP &gt;=5.5.9

Since Jul 18Pushed 8y agoCompare

[ Source](https://github.com/theprivateer/clickable)[ Packagist](https://packagist.org/packages/theprivateer/clickable)[ Docs](https://github.com/theprivateer/clickable)[ RSS](/packages/theprivateer-clickable/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Clickable
=========

[](#clickable)

A simple utility to convert URLs and emails in a string to clickable HTML anchors.

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

[](#installation)

The package can be installed using Composer:

```
composer require theprivateer/clickable
```

Usage
-----

[](#usage)

To use it, it's just a matter of passing a string to the static `parse` method on the class:

```
require_once 'path/to/composer/autoload.php';

echo \Privateer\Clickable\Clickable::parse('Read my blog at https://philstephens.io');

// Read my blog at https://philstephens.io
```

Alternatively you can use the `str_clickable` helper function (also autoloaded by Composer):

```
require_once 'path/to/composer/autoload.php';

$str = 'Find out more at https://packagist.org/packages/theprivateer/clickable.';

echo str_clickable($str)

// Find out more at https://packagist.org/packages/theprivateer/clickable.
```

If you pass through a string that already has an anchor tag in it, fear not - the parser will automatically ignore them:

```
require_once 'path/to/composer/autoload.php';

$str = 'Find out more at https://packagist.org/packages/theprivateer/clickable.';

echo str_clickable($str)

// Find out more at https://packagist.org/packages/theprivateer/clickable.
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Every ~8 days

Total

2

Last Release

3262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/884249d2bb312969d25674c0f5b296ff7fc03776ea2dafabedc4d0b04c711acb?d=identicon)[theprivateer](/maintainers/theprivateer)

---

Top Contributors

[![theprivateer](https://avatars.githubusercontent.com/u/23644679?v=4)](https://github.com/theprivateer "theprivateer (2 commits)")

---

Tags

urlhtml

### Embed Badge

![Health badge](/badges/theprivateer-clickable/health.svg)

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

###  Alternatives

[spatie/url

Parse, build and manipulate URL's

74115.7M117](/packages/spatie-url)[league/uri-components

URI components manipulation library

31940.5M94](/packages/league-uri-components)[sabre/uri

Functions for making sense out of URIs.

29437.7M45](/packages/sabre-uri)[caxy/php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

21522.3M21](/packages/caxy-php-htmldiff)[spomky-labs/base64url

Base 64 URL Safe Encoding/Decoding PHP Library

15442.9M59](/packages/spomky-labs-base64url)[opis/uri

Build, parse and validate URIs and URI-templates

2126.4M7](/packages/opis-uri)

PHPackages © 2026

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