PHP Classes

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

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 142 All time: 9,186 This week: 524Up
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: 58
All time rank: 110213 in Portugal Portugal
Week rank: 164 Up3 in Portugal Portugal Up

Screenshots (1)  
  • screenshot-1.png
  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:142
This week:0
All time:9,186
This week:524Up