- Ark4ne URL support.
// Construct URL
$url = new \Ark4ne\Helpers\URL('www.github.com/Ark4ne/php-helpers');
$url->getProtocol() == 'http';
$url->setSecure(true);
$url->getProtocol() == 'https';
(string) $url == 'https://www.github.com/Ark4ne/php-helpers';
- shortcut function.
url_($url, $params, $secure, $domain);
$url = url_('www.github.com/Ark4ne/php-helpers',
[], // $params
true // $secure
) == 'https://www.github.com/Ark4ne/php-helpers';