定制 arisharyanto/bitlys 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

arisharyanto/bitlys

Composer 安装命令:

composer require arisharyanto/bitlys

包简介

Libraries to create Short URL with Bitly API

README 文档

README

Create Shorten URL with Bitly API in Laravel

How to install

  • Run in your terminal:
$ cd yourprojectdirectory
$ composer require arisharyanto/bitlys
  • Add the service providers in config/app.php:
Arisharyanto\Bitlys\BitlysServiceProvider::class,
  • Run this command in the terminal
$ php artisan vendor:publish --provider="Arisharyanto\Bitlys\BitlysServiceProvider"  
  • Add access_token from your bitly apps in config/bitlys.php:
'access_token' => 'your access token',

How to use

Just add use Arisharyanto\Bitlys\Bitlys

Bitlys::shorten($longUrl);  # Create short bitly url
Bitlys::expand($shortUrl);  # Convert shortUrl to longUrl
Bitlys::clicks($shortUrl);  # Returns the number of clicks on a single Bitlink
Bitlys::countries($shortUrl);  # Returns metrics about the countries referring click traffic to a single Bitlink

Simple !

Who is using Bitlys

License

See the license https://github.com/Aris-haryanto/Bitlys-Laravel/blob/master/LICENSE

Author

Aris Haryanto visit my website https://arindasoft.wordpress.com/

统计信息

  • 总下载量: 558
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固