Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

PHP Plugin

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

PHP Plugin - CodeCanyon Item for Sale


Ad: Bluehost hosting

The plugin interacts with the api allowing you to easily shorten urls, decode short links (to determine where they point), and find out how many times a link has been clicked. It can also generate QR code images as opposed to standard links. Works with both and links.

Shorten Links

Use this function to get the short link for a particular URL. It creates links by default, but works with api as well.

 echo $bitly->shorten(''); 


Additionally, you can return a qr code instead of a text link like so:

 echo $bitly->shorten('', $service='', $qr=true); 


Expand Links

This function will “expand” or links and retrieve the long url that they point to.

 echo $bitly->expand(''); 


Bitly Stats

Use this to get the click stats for or links. By default it will get the number of clicks on just your short link. However, if you pass “global” after the link it will get the number of clicks from all links pointing to the long url (in this case Additionally you can enter “both” and it will return an array inluding both user and global click stats.

 $stats = $bitly->stats('', $type='both'); $stats['user']; // User link clicks $stats['global']; // Global link clicks 


Clicks on 3
Clicks on all links pointing to 1483

More Files From the PHP Plugin Suite

Image Plugin

Twitter Plugin

Video Plugin

Weather Plugin

Map + Weather Plugin

pose css

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


27 January 11

Last Update:

High Resolution:

Compatible Browsers:
IE6, IE7, IE8, Safari, Opera

Files Included:

Software Framework:

Software Version:
PHP 5.x, PHP 5.0 - 5.2, PHP 5.3


eCommerce, All Items,, codeigniter,, php, url shortener