vstelmakh/url-highlight
Library to parse urls from string input
v3.2.0
1.0M downloads/mo
#4008 most downloaded on Packagist
vstelmakh/url-highlight
What this package is like to depend on
Last release 4 months ago
14 Apr 2026
Release timing varies
gaps range from 2 weeks to 1.2 years
Nearly every release is documented
notes for 21 of 21 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
21 releases · first in 2019
3 releases in the last 12 months
see the full history below
Release timeline
21 releases · Dec 2019 to Apr 2026Releases
latest 21-
v3.2.014 Apr 2026Release notes
Open source →Changelog:
- Improved scheme matching in compliance with RFC 3986
- Improved host matching with invisible characters (joiners) in compliance with RFC 5892 (Appendix A)
Release notes
Open source →- Improved scheme matching in compliance with RFC 3986
- Improved host matching with invisible characters (joiners) in compliance with RFC 5892 (Appendix A)
-
v3.1.403 Apr 2026 -
v3.1.304 Oct 2025Release notes
Open source →Changelog:
- Updated top level domain list to recent changes
- Added CI build for PHP 8.5
Release notes
Open source →- Updated a top-level domain list to recent changes
- Added CI build for PHP 8.5
-
v3.1.205 Apr 2025 -
v3.1.115 Sep 2024Release notes
Open source →Changelog:
- Updated top level domain list to recent changes
- Added CI build for PHP 8.4
Release notes
Open source →- Updated a top-level domain list to recent changes
- Added CI build for PHP 8.4
-
v3.1.028 Jul 2024Release notes
Open source →Changelog:
- Improved userinfo matching in compliance with RFC 3986 Uniform Resource Identifier (URI): Generic Syntax
Release notes
Open source →- Improved userinfo matching in compliance with RFC 3986 Uniform Resource Identifier (URI): Generic Syntax
-
v3.0.304 Nov 2023Release notes
Open source →Changelog:
- Updated top level domain list to recent changes
- Added CI build for PHP 8.3
Release notes
Open source →- Updated a top-level domain list to recent changes
- Added CI build for PHP 8.3
-
v3.0.215 Jan 2023Release notes
Open source →Changelog:
- Updated top level domain list to recent changes
- Added CI build for PHP 8.2
- Added declare strict types and corresponding sniffer rule
Release notes
Open source →- Updated a top-level domain list to recent changes
- Added CI build for PHP 8.2
- Added declare strict types
-
v3.0.114 Nov 2021Release notes
Open source →Changelog:
- Updated top level domain list to recent changes
- Added CI build for PHP 8.1
Release notes
Open source →- Updated a top-level domain list to recent changes
- Added CI build for PHP 8.1
-
v3.0.005 Nov 2020Release notes
Open source →Changelog:
- Refactored HighlighterInterface to be more flexible [BC break]
- Refactored HtmlHighlighter to follow template method pattern (much easy to extend)
- Refactored MarkdownHighlighter to aware of HTML content (extends HtmlHighlighter)
- Added MatcherFactory and ReplacerFactory
Release notes
Open source →- Refactored HighlighterInterface to be more flexible [BC break]
- Refactored HtmlHighlighter to follow a template method pattern (much easier to extend)
- Refactored MarkdownHighlighter to be aware of HTML content (extends HtmlHighlighter)
- Added MatcherFactory and ReplacerFactory
- Refactored HighlighterInterface to be more flexible [BC break]
-
v2.3.024 Sep 2020Release notes
Open source →- Added PHP 8 compatibility
- Renamed class
VStelmakh\UrlHighlight\Matcher\MatchtoUrlMatchSince PHP v8.0
matchis a reserved keyword.
This will affect you if custom Validator or Highlighter implemented. Consider expecting UrlMatch instead ofMatchin your implementations.
-
v2.2.004 Sep 2020Release notes
Open source →- Fixed match complex urls with brackets (e.g. ELK urls)
- Improved matcher performance (~3x faster)
- Fixed HTML entity encoder regex builder (not all html entities were encoded)
- Added fallback to encoded matcher to skip match if the encoder is not able to encode
- Improved url match regex to cover more cases
- Added match emails by default in validator
-
v2.1.028 Jul 2020 -
v2.0.019 May 2020Release notes
Open source →- Replaced array configuration by specific interfaces: Validator, Highlighter, Encoder [BC break]
- Added support for HTML escaped input
- Fixed HTML highlight when href for urls contains
"(double quote) - Added changelog
-
v1.2.401 May 2020Release notes
Open source →- Fixed match by host includes colon at the end (e.g.
example.com:will not include colon anymore)
- Fixed match by host includes colon at the end (e.g.
-
v1.2.302 Apr 2020 -
v1.2.222 Mar 2020Release notes
Open source →- Improved url regex (stricter scheme and host name)
- Changed to not match emails (temporary)
-
v1.2.114 Mar 2020Release notes
Open source →- Added
.gitattributesto ignore dev files (e.g. tests) on export - Improved readme
- Added project logo
- Added
-
v1.2.014 Jan 2020Release notes
Open source →- Added configuration. Additional options could be provided via constructor:
match_by_tlddefault_schemescheme_blacklistscheme_whitelist
- Added configuration. Additional options could be provided via constructor:
-
v1.1.005 Jan 2020 -
v1.0.022 Dec 2019Release notes
Open source →- Added check if string is url
isUrl - Added parse urls from string
getUrls - Added replace urls in string by HTML tags
highlightUrls
- Added check if string is url