laravel-junkies/url-shortener
最新稳定版本:v1.0.1
Composer 安装命令:
composer require laravel-junkies/url-shortener
包简介
The official UX9 URL Shortener API for Laravel Users.
README 文档
README
The official UX9 URL Shortener API for Laravel Users. NOTE: a UX9 API Key is required.
Installation
To get the latest version of Laravel Junkies UX9-URL-Shortener, you can use the Composer require command:
$ composer require laravel-junkies/url-shortener
If you want to install a specific version, update your require block and run composer update:
{
"require": {
"laravel-junkies/url-shortener": "^2.0"
}
}
Once Laravel Junkies UX9-URL-Shortener is installed, you need to register the service provider in config/app.php. Add the following to providers:
LaraJunkie\Url\UrlShortenerProvider::class,
Also you can register the facade in aliases if you like.
'Shortener' => LaraJunkie\Url\Shortener::class,
Configuration
Laravel Junkies UX9-URL-Shortener requires a configuration file.
To get started, you have to publish it:
$ php artisan vendor:publish --tag=lj-shortener
This will create a config/lj-shortener.php file in your config directory. Here you have to add your UX9 API Token.
Usage
$url = Shortener::short('http://example.com');
License
Laravel Junkies UX9-URL-Shortener is licensed under The MIT License (MIT).
统计信息
- 总下载量: 1.14k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-16