Class.FTShorten

The FTShorten Class is a development branch of the URL Shortener Plugin.

This PHP Class lies at the core of that plugin and provides the interface needed to send and receive a URL Shortening request to the list of supported services.

Updates to this class will be independent from the main URL Shortener Plugin branch.

Download Version 1.0

Currently Supported Services

  • tinyurl
  • is.gd
  • su.pr
  • bit.ly
  • tr.im
  • short.ie
  • snipurl (aka Snurl / Snipr )
  • cl.gs
  • short.to
  • ping.fm
  • chilp.it
  • smsh (aka sm00sh)
  • u.nu
  • unfake.it
  • Awe.sm

Usage

Description Property
A new class instance $shorturl = new FTShorten();
URL Service $shorturl->service
URL to Shorten $shorturl->url
Service Username $shorturl->name
Service Password / User Key $shorturl->apikey
Define Prefix (for Snipurl / Snurl/ Snipr) $shorturl>apiprefix
Define Ping.fm Developer API key $shorturl->pingfmapi

Notes: If Snipurl / Snurl / Snipr service is required, set “service” to “snipurl” and define the desired domain using “apiprefix”

In the Works (future):

I am currently working on providing a general option which allows the developer or user to define their own custom shortening server uri, thus allowing more flexibility not confined to the current list of services. This may also allow a less bulky class.

Release History:

  • Version 1.0 :
    • First Independent Release
    • Supports services from Version 2.0 of URL Shortener Plugin.

License

  • class.FTShorten  is released under the GNU General Public License V3.
  • Permission is granted for re-use of the class in other plugins provided the plugin is released under a similar license
  • This class is not to be packaged as part of a commercial plugin or other any part of a paid download without prior notification to the author.

Support and Feedback:

Feel free to give any feedback or report any bugs.

View Project Page:

  • Google Code (http://code.google.com/p/url-shortener-plugin/)

If you like the download and wish to support, do donate:

Donation

Shortlinks

Leave a Comment

Or Comment using....

Facebook Connect

Skip the hassle of typing in the required fields! Link Fusedthought Studio with your Google, Facebook or other connect enabled accounts.

Top