Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 140 All time: 7,421 This week: 1,443Up
Version License PHP version Categories  
sm00sh 1.0GNU Lesser General Publ...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
Name: Lopo Lencastre de ... is available for providing paid consulting. Contact Lopo Lencastre de ... .
Classes: 3 packages by
Country: Portugal Portugal
Age: 47
All time rank: 101114 in Portugal Portugal
Week rank: 780 Up15 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:140All time:7,421
 This week:0This week:1,443Up