Login   Register  
PHP Classes
elePHPant
Icontem

Perfect URL Trimmer: Retrieve the shortest URL from several services

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-08-04 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 468 All time: 5,475 This week: 1,410Up
Version License PHP version Categories  
perfect_url_trimmer 1.0Freely Distributable5.0PHP 5, Web services
Description Author  

This class can be used to retrieve the shortest URL from several shortening services.

It accesses the APIs of different URL shortening services and sends a request to retrieve the short version of a given URL.

The class returns the short URL that is the shortest among all that were tried.

Currently it tries the following shortening services: tr.im, bit.ly and ur.ly.

Innovation Award  
PHP Programming Innovation award nominee
August 2009
Number 3


Prize: One book of choice by Apress
Nowadays, there are plenty of URL shortening services, making it hard to choose one that makes the URLs shorter.

This class provides a solution for that problem. It tries several of such URL shortening services and picks the one that returns the shortest URL.

Manuel Lemos
Picture of Khurram Adeeb Noorani
Name: Khurram Adeeb Noorani <contact>
Classes: 2 packages by
Country: Pakistan Pakistan
Age: 28
All time rank: 193125 in Pakistan Pakistan
Week rank: 1843 Up32 in Pakistan Pakistan Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.trimmer.php Class main class file
Accessible without login Plain text file index.php Example example script

 Version Control Unique User Downloads Download Rankings  
 0%Total:468All time:5,475
 This week:0This week:1,410Up