PHP Classes

sm00sh Class: Replace URLs in HTML by short URLs from

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 142 All time: 9,181 This week: 524Up
Version License PHP version Categories
sm00sh 1.0GNU Lesser Genera...5.0HTTP, PHP 5, Web services


This class can be used to replace URLs in HTML by short URLs from .

It parses an HTML excerpt to extract the URLs of all links.

The class uses the Web services API to create short URLs for all URLs found in the HTML and replaces all the links.

Picture of Lopo Lencastre de Almeida
  Performance   Level  
Name: Lopo Lencastre de ... is available for providing paid consulting. Contact Lopo Lencastre de ... .
Classes: 3 packages by
Country: Portugal Portugal
Age: 57
All time rank: 110213 in Portugal Portugal
Week rank: 288 Up4 in Portugal Portugal Up

  • screenshot-1.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file sample.php Example Example file explaining how to use the class. The important code are just three lines and quite self explanatory.
Plain text file smoosh.lib.php Class The class. Really simple. Requires PHP DOM, cURL and SimpleXML

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,181
This week:524Up