daika7ana / shortenapi
Laravel ShortenAPI,用于我的ShortURL网络应用
1.2
2018-03-08 23:14 UTC
This package is auto-updated.
Last update: 2024-09-29 05:27:44 UTC
README
Composer 包
需求
- Laravel > 5.5
- PHP > 7.1
安装
-
composer require daika7ana/shortenapi -
使用php artisan vendor:publish发布以下提供者
Daika7ana\Shortenapi\ShortenapiServiceProvider -
在%projectroot%/config/shortenapi.php中配置API URL,之后加斜杠
'api_url' => 'http://example.ex/'
用法
Shortenapi::shorten('https://example.ex/')Shortenapi::expand('https://example.ex/6axQe2')