2017 © Pedro Peláez
 

library url-box

php url shorten

image

ozcat/url-box

php url shorten

  • Saturday, October 24, 2015
  • by orvice
  • Repository
  • 1 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Url-box

URL Shorten bundle for PHP, (*1)

How To Use/Demo

Install

Install with Composer, (*2)

composer require ozcat/url-box

dwz.cn

$demo = new OzCat\Urlbox\Dwzcn();
$url = "http://url.com";
$bk = $demo->srt($url);
//Restore a url
$long = $demo->expand($bk);
echo $bk;

is.gd

$demo = new OzCat\Urlbox\Isgd();
$url = "http://url.com";
$bk  = $demo->srt($url);
echo $bk;

bit.ly

You can get your own token at bitly., (*3)

$demo = new OzCat\Urlbox\Bitly($key);
$url = "http://url.com";
$bk  = $demo->srt($url);
//Restore a url
$long = $demo->expand($bk);
echo $bk;

t.cn

please edit the appkey in file class/tcn.class.php before using. You can get your own appkey at sina., (*4)

include_once '../class/tcn.class.php';
$demo = new tcn($key);
$url = "http://url.com";
$bk  = $demo->srt($url);
//Restore a url
$long = $demo->expand($bk);
echo $bk;

The Versions

24/10 2015

dev-master

9999999-dev https://github.com/OzCat/url-box

php url shorten

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

url php

08/10 2015

dev-dev

dev-dev https://github.com/OzCat/url-box

php url shorten

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

url php