src/includes/classes/Core/Utils/CliOs.php
public function openUrl(string $url)
    {
        if (!($url = $this->c::mbTrim($url))) {
            return; // Not possible.
        }
        $url_arg = escapeshellarg($url);

        if ($this->c::isMac()) {
            `open $url_arg`;
        } elseif ($this->c::isLinux()) {
            `xdg-open $url_arg`;
        } elseif ($this->c::isWindows()) {
            `start $url_arg`;
        } else {
            throw $this->c::issue('Unable to open <'.$url.'>. Unsupported operating system.');
        }
    }
public function openUrl(string $url)
    {
        if (!($url = $this->c::mbTrim($url))) {
            return; // Not possible.
        }
        $url_arg = escapeshellarg($url);

        if ($this->c::isMac()) {
            `open $url_arg`;
        } elseif ($this->c::isLinux()) {
            `xdg-open $url_arg`;
        } elseif ($this->c::isWindows()) {
            `start $url_arg`;
        } else {
            throw $this->c::issue('Unable to open <'.$url.'>. Unsupported operating system.');
        }
    }
Open a URL from the command line.

@since 150424 Initial release.

@param string $url The URL to open.