yii2-extension yii2-weibo-shorturl
Weibo short url client
atans/yii2-weibo-shorturl
Weibo short url client
- Sunday, January 1, 2017
- by atans
- Repository
- 1 Watchers
- 0 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Yii2 weibo short url
Weibo short url client, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
composer require atans/yii2-weibo-shorturl
or add, (*4)
"atans/yii2-weibo-shorturl": "*"
to the require section of your composer.json
file., (*5)
Usage
// app/config/main-local.php
use atans\weibo\ShortUrl;
return [
'components' => [
// ...
'shortUrl' => [
'class' => ShortUrl::className(),
'appKey' => '<your-app-key>',
],
],
];
// Use it
$response = Yii::$app->shortUrl->shorten('http://www.yiiframework.com');
dev-master
9999999-dev
Weibo short url client
Sources
Download
MIT
The Requires
by
atans
extension
yii2