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.
Package info
github.com/waiyanhein/html-anchor-replacer
Type:dev
pkg:composer/waiyanhein/html-anchor-replacer
dev-master
2020-01-29 20:17 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ^7
This package is not auto-updated.
Last update: 2026-03-27 15:56:20 UTC
README
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
composer require waiyanhein/html-anchor-replacer
Example
use HtmlAnchorReplacer/HtmlAnchorReplacer;
echo HtmlAnchorReplacer::replace("Your string");