NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #2739 most downloaded on Packagist
Library to parse URLs from string input
Last release 1 months ago
01 Sep 2026
Ships fairly regularly
a new release about every 6 months
Nearly every release is documented
notes for 22 of 22 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
22 releases · first in 2019
Version 4 is a major rethink of the library, based on everything learned since the first release. The public interface is new and much simpler, so cod
Version 4 is a major rethink of the library, based on everything learned since the first release.
The public interface is new and much simpler, so code written using version 3.x needs changes.
See Upgrade 3.x to 4.0 for the migration steps.
Changelog:
HighlighterInterface by a Highlighter interfacePlain, Html, HtmlEncodedhighlightUrls to highlight and getUrls to findisUrl method (no replacement provided)a, button, datalist,math, script, select, style, svg, textarea, titleOne column per quarter.
Improved scheme matching in compliance with RFC 3986
Changelog:
Updated top level domain list to recent changes
Changelog:
Updated top level domain list to recent changes
Changelog:
Updated top level domain list to recent changes
Changelog:
Updated top level domain list to recent changes
Changelog:
Improved userinfo matching in compliance with RFC 3986 Uniform Resource Identifier (URI): Generic Syntax
Changelog:
Updated top level domain list to recent changes
Changelog:
Updated top level domain list to recent changes
Changelog:
Updated top level domain list to recent changes
Changelog:
Refactored HighlighterInterface to be more flexible [BC break]
Changelog:
Renamed class VStelmakh\UrlHighlight\Matcher\Match to UrlMatch
VStelmakh\UrlHighlight\Matcher\Match to UrlMatch
Since PHP v8.0
matchis a reserved keyword.
This will affect you if custom Validator or Highlighter implemented. Consider expecting UrlMatch instead ofMatchin your implementations.
Fixed match complex URLs with brackets (e.g. ELK URLs)
Added HTML highlighter tag attributes
\[BC break\] Replaced array configuration by specific interfaces: Validator, Highlighter, Encoder
" (double quote)Fixed match by host includes colon at the end (e.g. example.com: will not include colon anymore)
example.com: will not include colon anymore)Fixed match scheme without host (e.g. http:// will not match anymore)
http:// will not match anymore)Improved URL regex (stricter scheme and host name)
Added .gitattributes to ignore dev files (e.g. tests) on export
.gitattributes to ignore dev files (e.g. tests) on exportAdded configuration. Additional options could be provided via constructor:
match_by_tlddefault_schemescheme_blacklistscheme_whitelistAdded locate URLs without a protocol using a top-level domain name
Added check if string is URL isUrl
isUrlgetUrlshighlightUrlsYour coding agent can read these notes before it upgrades. Set up the MCP server →