Download the PHP package huacaizhi/short-url without Composer
On this page you can find all versions of the php package huacaizhi/short-url. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package short-url
ShortUrl
ShortUrl 是一个尽可能聚合市面上提供短链接服务应用的 PHP
包。
安装
-
环境要求:
- php >= 5.5
- cURL extension
-
如果您通过
composer
管理您的项目依赖,可以在您的项目根目录运行:$ composer require huacaizhi/short-url
或者在您的
composer.json
中声明对huacaizhi/short-url
for PHP的依赖:"require": { "huacaizhi/short-url": "0.2.0" }
然后通过
composer install
安装依赖。composer
安装完成后,在您的PHP
代码中引入依赖即可:require_once __DIR__ . '/vendor/autoload.php';
-
下载
SDK
源码,在您的代码中引入SDK目录下的autoload.php
文件:require_once '/path/to/shorturl/autoload.php';
用法
1.创建短链接
2.创建短链接并设置有效期
3.还原短链接
常用的短网址服务商
https://dwz.cn/ (百度短网址) - 已支持
百度短链接: https://dwz.cn
token
获取地址: https://dwz.cn/console/userinfohttp://maiyurl.cn/ - 已支持
麦云短链接: http://maiyurl.cn
All versions of short-url with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
ext-curl Version *
ext-json Version *
ext-curl Version *
ext-json Version *
The package huacaizhi/short-url contains the following files
Loading the files please wait ....