Skip to content

kamillos/ux9-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UX9 URL Shortener API

Official UX9 URL Shortener API

Total Downloads Latest Stable Version Latest Unstable Version License

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:

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

Initialize

$shortener = new TobyMaxham\Ux9\Shortener($url = NULL, $format = FALSE);

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 config file or the 'json' format.

Get short URL

$shortener->out($format = NULL);

Short Version

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

Here you will always get the string of the short url.

Options and parameters

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

Configuration

About

Official UX9 URL Shortener API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%