Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

bahirul/yii2-short-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

yii2-short-url

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

Component Configuration

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

Simple Usage


$short = Yii::$app->google->shortUrl('http://example.com');
$expand = Yii::$app->google->expandUrl($short);

Other Information

See google API URL Shortner docs https://developers.google.com/url-shortener/

About

Yii2 Sort Url using Google Shortener

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages