Skip to content

sophy/Google-URL-Shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This class to generate shornter and expendfor Google URL Shortener.

Example:
	require_once("GoogleURL.php");
	
	$url = new GoogleURL('YOUR_GOOGLE_API_KEY');
	//Short url
	$shorten = $url->shorten("http://support.mozilla.com/en-US/kb/Keyboard%20shortcuts");
	echo $shorten; //http://goo.gl/dbE8A
	
	//expand url
	echo $url->expand($shorten); //http://support.mozilla.com/en-US/kb/Keyboard%20shortcuts
	
	//long url clicks
	echo $url->getLongUrlCliks();
	
	//short url click
	echo $url->getShortUrlClicks();
	
NOTE: Get Google API Key https://code.google.com/apis/console/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages