PHPackages                             waiyanhein/html-anchor-replacer - 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. waiyanhein/html-anchor-replacer

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

waiyanhein/html-anchor-replacer
===============================

Lightweight library to crawl all the urls or links in a paragraph and replace with html anchor tags. Crawling is perfect.

07PHPCI failing

Since Jan 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/waiyanhein/html-anchor-replacer)[ Packagist](https://packagist.org/packages/waiyanhein/html-anchor-replacer)[ RSS](/packages/waiyanhein-html-anchor-replacer/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

This is a lightweight library for replacing the urls in a paragraph with HTML anchor tags. This will detect the url perfectly even if the structure of the string is over-complicated

To install the package, use composer
====================================

[](#to-install-the-package-use-composer)

composer require waiyanhein/html-anchor-replacer

Example
=======

[](#example)

use HtmlAnchorReplacer/HtmlAnchorReplacer;

echo HtmlAnchorReplacer::replace("Your string");

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ca653867bab097f161b916b2830f0a4e6161541551c16a5ea263549cbcb78cf?d=identicon)[Wai Yan Hein](/maintainers/Wai%20Yan%20Hein)

---

Top Contributors

[![waiyanhein](https://avatars.githubusercontent.com/u/9372127?v=4)](https://github.com/waiyanhein "waiyanhein (4 commits)")[![waiyanheincyberduck](https://avatars.githubusercontent.com/u/43062909?v=4)](https://github.com/waiyanheincyberduck "waiyanheincyberduck (1 commits)")

### Embed Badge

![Health badge](/badges/waiyanhein-html-anchor-replacer/health.svg)

```
[![Health](https://phpackages.com/badges/waiyanhein-html-anchor-replacer/health.svg)](https://phpackages.com/packages/waiyanhein-html-anchor-replacer)
```

PHPackages © 2026

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