google-url-shortener goo.gl URL shortener

  1. Requirements
  2. Usage
  3. Resources

This extension allows you to short url through google url shortener service goo.gl.

Requirements

Testing on Yii 1.1.8, but almost sure that it working in lower versions.

You must get an api key for goo.gl. Documentation for Google URL Shortener API.

Usage

Extract file to protected/extensions/shorturl/ Activate component in configuration file:

'components' => array(
// ...
'shorturl' => array(
	'class' => 'ext.shorturl.ShortUrl',
	'apiKey' => 'xxxxxx', // apikey
),
// ...
}

And now usage it in your application:

Yii::app()->shorturl->short('http://mysite.com/MyReallyLongUrl?withLongLongParams=1');

Resources

4 0
6 followers
759 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Web Service
Developed by: Stamm
Created on: Sep 3, 2011
Last updated: 12 years ago

Downloads

show all