NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3152 most downloaded on Packagist
Library to find URLs in text and turn them into clickable links
Latest stable
4.0.2
Last release 13 days ago
08 Nov 2026
Release timing varies
gaps range from 2 weeks to 1.2 years
Nearly every release is documented
notes for 24 of 24 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
24 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Excluded URLs with an unsafe scheme (javascript, vbscript, data) from matching to prevent XSS.
javascript, vbscript, data) from matching to prevent XSS.Updated the top-level domain list with recent changes.
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
Your coding agent can read these notes before it upgrades. Set up the MCP server →
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.
HighlighterInterface with a Highlighter interface.Plain, Html, HtmlEncoded.highlightUrls to highlight and getUrls to find.isUrl method (no replacement provided).a, button,
datalist, math, script, select, style, svg, textarea, title.Improved scheme matching in compliance with RFC 3986.
Updated the top-level domain list with recent changes.
Updated the top-level domain list with recent changes.
Updated the top-level domain list with recent changes.
Updated the top-level domain list with recent changes.
Improved userinfo matching in compliance with RFC 3986 Uniform Resource Identifier (URI): Generic Syntax.
Updated the top-level domain list with recent changes.
Updated the top-level domain list with recent changes.
Changelog:
Updated the top-level domain list with recent changes.
Changelog:
\[BC break\] Refactored HighlighterInterface to be more flexible:
Renamed the class VStelmakh\UrlHighlight\Matcher\Match to UrlMatch.
VStelmakh\UrlHighlight\Matcher\Match to UrlMatch.
Since PHP 8.0,
matchis a reserved keyword.
This affects you if you implemented a custom Validator or Highlighter. Consider expecting UrlMatch instead ofMatchin your implementations.
Fixed matching of complex URLs with brackets (e.g. ELK URLs).
Added tag attributes to the HTML highlighter.
\[BC break\] Replaced the array configuration with specific interfaces: Validator, Highlighter, Encoder.
" (double quote).Fixed a match by host that included a colon at the end (e.g. example.com: will not include the colon anymore).
example.com: will not include the colon anymore).Fixed matching a scheme without a host (e.g. http:// will not match anymore).
http:// will not match anymore).Improved the 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 export.Added configuration. Additional options can be provided via the constructor:
match_by_tlddefault_schemescheme_blacklistscheme_whitelistAdded locating URLs without a protocol by their top-level domain name.
Added isUrl to check if a string is a URL.
isUrl to check if a string is a URL.getUrls to parse URLs from a string.highlightUrls to replace URLs in a string with HTML tags.One column per quarter.