PHP Classes
elePHPant
Icontem

sm00sh Class: Replace URLs in HTML by short URLs from smsh.me

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-05-30 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 141 All time: 8,094 This week: 1,307Up
Version License PHP version Categories
sm00sh 1.0GNU Lesser Genera...5.0HTTP, PHP 5, Web services
Description Author

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

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

The class uses the smsh.me 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: 49
All time rank: 105314 in Portugal Portugal
Week rank: 1490 Down23 in Portugal Portugal Down

Screenshots  
  • 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  
 0%
Total:141
This week:0
All time:8,094
This week:1,307Up