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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package short-url

ShortUrl

ShortUrl 是一个尽可能聚合市面上提供短链接服务应用的 PHP 包。

安装

  1. 环境要求:

    • php >= 5.5
    • cURL extension
  2. 如果您通过 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';
  3. 下载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/userinfo

http://maiyurl.cn/ - 已支持

麦云短链接: http://maiyurl.cn

http://yourls.org/

https://bitly.com/

https://goo.gl/


All versions of short-url with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package huacaizhi/short-url contains the following files

Loading the files please wait ....