2017 © Pedro Peláez
 

library url-shortener

The offical UX9 URL Shortener API.

image

tobymaxham/url-shortener

The offical UX9 URL Shortener API.

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 7 Versions
  • 15 % Grown

The README.md

UX9 URL Shortener API

Official UX9 URL Shortener API. Visit ux9.de for more Details., (*1)

Total Downloads Latest Stable Version Latest Unstable Version License Finished, (*2)

Installation

composer require tobymaxham/url-shortener

Usage

There are different ways how to get your short URL. If you are using Laravel than try out laravel-junkies/url-shortener. It's an Laravel Package where you simply can use this:, (*3)

$url = Shortener::short('https://example.com');

Initialize

$shortener = new TobyMaxham\Ux9\Shortener($url = null, $config = null, $format = 'json');

// set the API Token
$shortener->setToken('YOUR_API_TOKEN');

Where $url can be a valid URL or an array containing URL's. The $format is the output/return format you specified. If you don't enter a format it will take the specified format defined in the configuration Array or the 'json' format., (*4)

Get short URL

$shortener->out();

Short Version

$shortener->short('http://maxham.de');
$shortener->short('http://github.com');

Here you will always get the string of the short url., (*5)

Options and parameters

// default = json, alternativ plain, array
$shortener->format($format);
$shortener->out($format);
$shortener->add($url);

Configuration

$config = [
    'API_TOKEN' => 'YOUR_API_TOKEN',
    'FORMAT' => 'plain',
];

$shortener = new TobyMaxham\Ux9\Shortener($url = null, $config);

The Versions

15/12 2017

dev-master

9999999-dev https://ux9.de

The offical UX9 URL Shortener API.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

url shortener tobymaxham ux9

15/12 2017

v2.0.1

2.0.1.0 http://ux9.de

The offical UX9 URL Shortener API.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

url shortener tobymaxham ux9

24/03 2016

v2.0

2.0.0.0 http://ux9.de

The offical UX9 URL Shortener API.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

url shortener tobymaxham ux9

02/09 2015

v1.2

1.2.0.0 http://ux9.de

The offical UX9 URL Shortener API.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

url shortener tobymaxham ux9

18/08 2015

v1.1

1.1.0.0 http://ux9.de

The offical UX9 URL Shortener API.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

url shortener tobymaxham ux9

16/08 2015

1.0.x-dev

1.0.9999999.9999999-dev http://ux9.de

The offical UX9 URL Shortener API.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

url shortener tobymaxham ux9

16/08 2015

1.0

1.0.0.0 http://ux9.de

The offical UX9 URL Shortener API.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

url shortener tobymaxham ux9