Short Your URL.

API

$url = urlencode('https://example.com');
/**
 * Possible Methods : json / xml / Array (serialized)
 */
$short_url = file_get_contents('https://urlify.me/api/?url='.$url.'&method=json');
$short_url = json_decode($short_url,true);
echo (isset($short_url['short'])) ? $short_url['short'] : 'Short URL Not Found';
URLify - Anonymous & secure URL shortener | Product Hunt Embed