webdevvie / shortner-php-client
Shortner php-client PHP
dev-master
2018-03-31 13:34 UTC
Requires
- php: >=5.6.0
- guzzlehttp/guzzle: ~6
- jms/serializer: ^1.10
Requires (Dev)
- phpunit/phpunit: ^5.3
This package is auto-updated.
Last update: 2024-11-29 05:38:37 UTC
README
Written by: John Bakker
STILL VERY MUCH WORK IN PROGRESS! Don't use this for production yet ;)
Links:
Quick start
Use composer to get the latest version
composer require webdevvie/shortner-php-client
Then make a connection
<?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.
Podcaster ?
Get in touch and we can work out a custom shortner for your show! for as low as €80,- a year