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 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 141 All time: 8,228 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 ... <contact>
Classes: 3 packages by
Country: Portugal Portugal

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,228
This week:1,307Up