[Bug 294236] www/url-highlight: new port - PHP library to parse URLs from string input

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 03 Apr 2026 18:59:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294236

            Bug ID: 294236
           Summary: www/url-highlight: new port - PHP library to parse
                    URLs from string input
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dvl@FreeBSD.org

Created attachment 269347
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=269347&action=edit
patch obtained via: git format-patch -1 HEAD

I've been using https://github.com/vstelmakh/url-highlight for years and just
realized I never ported it. I've cobbled together a port which builds and
installs.

I'm looking for help with this port because I'm unfamiliar with composer and
how to correctly install a port which relies upon it. At present, it installs
to  /usr/local/www/url-highlight - I'm not sure that's the appropriate
location.

In the code I was doing this:

require_once($_SERVER['DOCUMENT_ROOT'] .  '/../vendor/autoload.php');
use VStelmakh\UrlHighlight\Encoder\HtmlSpecialcharsEncoder;
use VStelmakh\UrlHighlight\UrlHighlight;

That code appears here:
https://github.com/FreshPorts/freshports/blob/main/include/htmlify.php#L87

and I had:

[18:56 test-nginx01 dvl /usr/local/www/freshports/vendor] % ls -l
total 14
-r-xr-xr-x  1 root wheel 771 2026.03.20 11:53 autoload.php
drwxr-xr-x  2 root wheel  14 2026.03.20 11:57 composer/
drwxr-xr-x  3 root wheel   3 2026.01.22 12:29 symfony/
drwxr-xr-x  3 root wheel   3 2026.01.22 12:29 vstelmakh/

Which is included here:

https://github.com/FreshPorts/freshports/tree/main/vendor

Thank you.

-- 
You are receiving this mail because:
You are the assignee for the bug.