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.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:dev
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ^7
This package is not auto-updated.
Last update: 2024-11-08 09:21:06 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");