Skip to content

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

Notifications You must be signed in to change notification settings

sedrak1987/yii2-google-url-shortener

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

yii2-google-url-shortener

Simple Yii2 component to short URL or expand URL using google API Url Shortener.

Installation

  • create folder components in your yii2
  • move GoogleShortUrl.php into components folder
  • add component class to config/main.php configuration file
....
'components' => [
        'google' => [
            'class' => 'app\components\GoogleShortUrl'
        ],
        .......
];
....

Usage

Short Url:
return Yii::$app->google->shortUrl('http://google.com');

Expand shorten Url:
return Yii::$app->google->expandUrl('https://goo.gl/FuAUYl');

Other Information

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%