[ad_1]
To get this product on 50 p.c contact me on this link
The bit.ly plugin interacts with the bit.ly api permitting you to simply shorten urls, decode quick hyperlinks (to find out the place they level), and learn the way many instances a hyperlink has been clicked. It can even generate QR code photographs versus customary hyperlinks. Works with each bit.ly and j.mp hyperlinks.
Shorten Links
Use this perform to get the quick hyperlink for a selected URL. It creates bit.ly hyperlinks by default, however works with j.mp api as properly.
echo $bitly->shorten('http://google.com');
Result: http://bit.ly/grqpfX
Additionally, you may return a qr code as an alternative of a textual content hyperlink like so:
echo $bitly->shorten('http://google.com', $service='bit.ly', $qr=true);
Result
Expand Links
This perform will “expand” bit.ly or j.mp hyperlinks and retrieve the lengthy url that they level to.
echo $bitly->increase('http://bit.ly/grqpfX');
Result: http://google.com
Bitly Stats
Use this to get the clicking stats for bit.ly or j.mp hyperlinks. By default it can get the variety of clicks on simply your quick hyperlink. However, should you go “global” after the hyperlink it can get the variety of clicks from all hyperlinks pointing to the lengthy url (on this case sublantic.internet). Additionally you may enter “both” and it’ll return an array inluding each consumer and world click on stats.
$stats = $bitly->stats('http://bit.ly/grqpfX', $kind='each'); $stats['user']; // User hyperlink clicks $stats['global']; // Global hyperlink clicks
Result
Clicks on http://bit.ly/grqpfX: 3
Clicks on all hyperlinks pointing to http://google.com: 1483
More Files From the PHP Plugin Suite
[ad_2]
To get this product on 50 p.c contact me on this link