public static function normalizeUrl($url) {
        if (!class_exists('URLNormalizer')) {
            require_once(realpath(__DIR__.'/../../classes').'/URLNormalizer.php'); 
        }

        $un = new \URLNormalizer();
        $un->setUrl($url);
        return $un->normalize();
    }
public static function normalizeUrl($url) {
        if (!class_exists('URLNormalizer')) {
            require_once(realpath(__DIR__.'/../../classes').'/URLNormalizer.php'); 
        }

        $un = new \URLNormalizer();
        $un->setUrl($url);
        return $un->normalize();
    }
public static function normalizeUrl ( $ url ) { if ( ! class_exists ( 'URLNormalizer' ) ) { require_once ( realpath ( __DIR__ . '/../../classes' ) . '/URLNormalizer.php' ) ; } $ un = new \ URLNormalizer ( ) ; $ un -> setUrl ( $ url ) ; return $ un -> normalize ( ) ; }
Use Glen Scotts UrlNormalizer to normalize the passed url.

@param  string $url
@return string
Use Glen Scotts UrlNormalizer to normalize the passed url .