elmsellem/laravel-bitly
Composer 安装命令:
composer require elmsellem/laravel-bitly
包简介
Laravel package for generating bitly short urls
README 文档
README
A laravel package for generating Bitly short URLs.
For more information see Bitly
Download laravel-bitly using composer
composer require elmsellem/laravel-bitly
Configure Bitly credentials
php artisan vendor:publish --provider="Elmsellem\Bitly\BitlyServiceProvider"
Add this in you .env file
BITLY_ACCESS_TOKEN=your_secret_bitly_access_token
Usage
<?php $url = app('bitly')->getShortenUrl('https://www.google.com/'); // https://bit.ly/3uOZj27
using facade:
<?php use Bitly; $url = Bitly::getShortenUrl('https://www.google.com/'); // https://bit.ly/3uOZj27
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-17