2017 © Pedro Peláez
 

library shortner-php-client

Shortner php-client PHP

image

webdevvie/shortner-php-client

Shortner php-client PHP

  • Saturday, March 31, 2018
  • by webdevvie
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Shortner 4.0 client

Written by: John Bakker, (*1)

STILL VERY MUCH WORK IN PROGRESS! Don't use this for production yet ;), (*2)

Links:

Quick start

Use composer to get the latest version, (*3)

composer require webdevvie/shortner-php-client

Then make a connection, (*4)

<?php
//change this to the site you would like to use
$shortnerHostname = 'www.testo.local';
//your api key obtainable from the site running shortner.
$shortnerApiKey = 'testkey';

$client = new \Shortner\ApiClient($shortnerHostname,$shortnerApiKey);

$newLink = new \Shortner\API\NewLink();
$newLink->setUrl('http://www.johnbakker.name');
$shortLink = $client->createLink($newLink);
echo $shortLink->getLink()->getUrl();

Of course there are quite a few properties of info you can get., (*5)

Podcaster ?

Get in touch and we can work out a custom shortner for your show! for as low as €80,- a year, (*6)

The Versions

31/03 2018

dev-master

9999999-dev

Shortner php-client PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api shortner shortner.com