CodeCanyon PHP Bit.ly Plugin 156153

CodeCanyon PHP Bit.ly Plugin 156153

CodeCanyon PHP Bit.ly Plugin 156153
PHP Script \ Miscellaneous
Shortener \ Codeigniter



PHP Script - PHP Bit.ly Plugin 156153 by sublantic @ CodeCanyon

PHP Script \ Miscellaneous

Last Update: 1 February 11; Compatible Browsers: IE6, IE7, IE8, Safari 4, Safari 5, Opera; Software Version: PHP 5.x, PHP 5.0 - 5.2, PHP 5.3; High Resolution: No; Software Framework: CodeIgniter; Files Included: PHP.

The bit.ly plugin interacts with the bit.ly 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 bit.ly and j.mp links.

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

echo $bitly->shorten('http://google.com');

Result: http://bit.ly/grqpfX

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

echo $bitly->shorten('http://google.com', $service='bit.ly', $qr=true);

Result

Expand Links
This function will “expand” bit.ly or j.mp links and retrieve the long url that they point to.

echo $bitly->expand('http://bit.ly/grqpfX');

Result: http://google.com

Bitly Stats
Use this to get the click stats for bit.ly or j.mp 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 sublantic.net). Additionally you can enter “both” and it will return an array inluding both user and global click stats.

$stats = $bitly->stats('http://bit.ly/grqpfX', $type='both');
$stats['user']; // User link clicks
$stats['global']; // Global link clicks

Result

Clicks on http://bit.ly/grqpfX : 3

Clicks on all links pointing to http://google.com : 1483

More Files From the PHP Plugin Suite

PHP Video Plugin; PHP Twitter Plugin; PHP Image Plugin; PHP Bit.ly Plugin; Dweamer - Dreamweaver Theme Builder.

Keywords: bit.ly, codeigniter, j.mp, php, url shortener.



Tags: Shortener, Codeigniter, Plugin

Premium CodeCanyon PHP Bit.ly Plugin 156153 WordPress Themes, Website Templates, Mobile Themes, Flash Templates & Scripts from creative professional designers. Full details of CodeCanyon PHP Bit.ly Plugin 156153 for digital design and education. CodeCanyon PHP Bit.ly Plugin 156153 desigen style information or anything related.

Comments:

Name:*
E-Mail:*
Add Comments:
Enter Code: *