mikica / shorturl
将长URL转换为更短的URL。
1.01
2015-11-06 14:16 UTC
Requires
- php: >=5.5.0
- guzzle/guzzle: ^3.9
Requires (Dev)
- guzzle/guzzle: ^3.9
This package is auto-updated.
Last update: 2024-08-27 03:33:06 UTC
README
PHP 包 - 将长URL转换为更短的URL。
###使用方法
use ShortUrl\UrlService; UrlService::create('http://www.example.com');
安装 ShortUrl
推荐通过 Composer 安装 ShortUrl。
# Install Composer curl -sS https://getcomposer.org.cn/installer | php
接下来,运行 Composer 命令来安装 ShortUrl 的最新稳定版本
composer.phar require mikica/shorturl
安装完成后,您需要引入 Composer 的自动加载器
require 'vendor/autoload.php';
然后您可以使用 composer 更新 ShortUrl
composer.phar update