Skip to content

prototypeblocks/php-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

php-url

getting started

include 'Url.php';  
use Prototypeblocks\Url;  

examples

current

$currentUrl = Url::current();
// $currentUrl contains current page URL for example: http://local.prototypeblocks.com/example/

previous

$previousUrl = Url::previous();
// $previousUrl contains previous page URL (refferer)

isHttps

$isSecure = Url::isHttps();
// $isSecure is a boolean with weither or not the current page is requested over HTTPS

redirect

$redirectTo = 'http://www.prototypeblocks.com/';
Url::isHttps($redirectTo);
// Will redirect (header location) to given page, in this case 'http://www.prototypeblocks.com/'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages