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)
```

###  Alternatives

[devfaysal/laravel-bangladesh-geocode

7111.0k](/packages/devfaysal-laravel-bangladesh-geocode)[qoliber/m2-datapatchcreator

552.7k4](/packages/qoliber-m2-datapatchcreator)[zero1/module-pagebuilder-web-vitals

Provides functionality to include image dimensions, link labels and lazyload options to image to help improve Google's Web Vitals audits scores

1823.1k](/packages/zero1-module-pagebuilder-web-vitals)[codewithdennis/filament-simple-map

This package offers a straightforward and easy-to-use map action component for your Filament application.

365.8k](/packages/codewithdennis-filament-simple-map)[alirahimi/livewire-persian-datepicker

The Persian Datepicker component for Laravel Livewire

275.0k](/packages/alirahimi-livewire-persian-datepicker)[howdu/filament-record-switcher

Resource level navigation with search

1512.5k](/packages/howdu-filament-record-switcher)

PHPackages © 2026

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