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

  Author Author  
Picture of Lopo Lencastre de Almeida
Name: Lopo Lencastre de ... is available for providing paid consulting. Contact Lopo Lencastre de ... .
Packages: 3 Browse all classes by Lopo Lencastre de Almeida Browse all classes by
Country: Portugal Portugal - PHP jobs in Portugal
Age: 47
All time rank: 100413 in Portugal Portugal
Week rank: 2007 Down31 in Portugal Portugal Down


  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of Lopo Lencastre de Almeida  >  sm00sh Class  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: sm00sh Class
Base name: sm00sh
Description: Replace URLs in HTML by short URLs from smsh.me
Version: 1.0
PHP version: 5.0
License: GNU Lesser General Public License (LGPL)
All time users: 136 users
All time rank: 7306
Week users: 0 users
Week rank: 1779 Equal
 
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Applications   Related links   Files Files  

  Groups  
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes

  Files folder image Screenshots  
sm00sh homepage
File Role Description
Accessible without login Image file screenshot-1.png Screen sm00sh homepage


  User ratings  
Not yet rated by the users

  Applications that use this class  
Link Description
Drupal Module sm00sh content on Drupal nodes
Wordpress Plugin sm00sh content and comments in Wordpress blogs
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Sm00sh API API and addons information

  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

Download Download all files: sm00sh.tar.gz sm00sh.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.