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.
| |
Screenshots |
|
|
| Not yet rated by the users |
| |
Applications that use this class |
|
|

If you know an application of this package, send a message to the
author to add a link here.
| Link |
Description |
| Sm00sh API |
API and addons information |
| |
Files |
|
|
| File |
Role |
Description |
sample.php |
Example |
Example file explaining how to use the class. The important code are just three lines and quite self explanatory. |
smoosh.lib.php |
Class |
The class. Really simple. Requires PHP DOM, cURL and SimpleXML |