Documentation

Url


The url helper allows you to interact with the URLs.


tiny(string $url)


Takes a long url and uses the TinyURL API to return a shortened version.


echo Url::tiny('http:://sitename.com');

exists(string $url)


Check is url exists.


if(Url::exists('http:://sitename.com')) {
    // Do something...
}

find(string $url)


Check is url exists.


// Outputs: http://sitename.com/home
echo Url::find('home'); 

base()


Gets the base URL.


echo Url::base();