src/Url.php
public static function getCurrentPage()
    {
        $protocol = self::getProtocol();
        $host = self::getDomain();
        $port = ':' . self::getPort();
        $port = (($port == ':80') || ($port == ':443')) ? '' : $port;
        $uri = self::getUri();

        return $protocol . '://' . $host . $port . $uri;
    }
public static function getCurrentPage()
    {
        $protocol = self::getProtocol();
        $host = self::getDomain();
        $port = ':' . self::getPort();
        $port = (($port == ':80') || ($port == ':443')) ? '' : $port;
        $uri = self::getUri();

        return $protocol . '://' . $host . $port . $uri;
    }
public static function getCurrentPage ( ) { $ protocol = self :: getProtocol ( ) ; $ host = self :: getDomain ( ) ; $ port = ':' . self :: getPort ( ) ; $ port = ( ( $ port == ':80' ) || ( $ port == ':443' ) ) ? '' : $ port ; $ uri = self :: getUri ( ) ; return $ protocol . '://' . $ host . $ port . $ uri ; }
Get URL from the current page.

@return string → URL
Get URL from the current page .