PHP code example of pnomolos / phitly
1. Go to this page and download the library: Download pnomolos/phitly library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pnomolos / phitly example snippets
$client = new \Phitly\Client($login, $apiKey);
// Returns a \Phitly\Url object
$url = $client->shorten('http://google.com');
$urls = $client->shorten(array('http://cnn.com', 'http://google.com'));