dev-master
9999999-devShortner php-client PHP
Apache-2.0
The Requires
- php >=5.6.0
- guzzlehttp/guzzle ~6
- jms/serializer ^1.10
The Development Requires
by John Bakker
api shortner shortner.com
Shortner php-client PHP
Written by: John Bakker, (*1)
STILL VERY MUCH WORK IN PROGRESS! Don't use this for production yet ;), (*2)
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)
Get in touch and we can work out a custom shortner for your show! for as low as €80,- a year, (*6)
Shortner php-client PHP
Apache-2.0
api shortner shortner.com