BitLy (bit.ly) PHP Class – Shorten and Expand URLs (and Hashes) with BitLy API - Comment Page: 1

BitLy (bit.ly) is a service which allows users to shorten, expand, share and track URLs (links). bit.ly can be accessed through bit.ly website and a robust and open API. Example: Shorten http://www.if-not-true-then-false.com/ url -> http://bit.ly/8cZ1fb Expand http://bit.ly/8cZ1fb url -> http://www.if-not-true-then-false.com/ This post deals with bit.ly API usage with a simple PHP Class. This PHP class allows to shorten normal urls, expand bit.ly urls and expand bit.ly hashes. BitLy PHP Class <?php class BitLy { private $break; private $api_version; private $format; private $login; private $apikey; // Constructor for BitLy class public...

5 comments on “BitLy (bit.ly) PHP Class – Shorten and Expand URLs (and Hashes) with BitLy API - Comment Page: 1

    1. […] The rest is here: BitLy (bit.ly) PHP Class – Shorten and Expand URLs (and Hashes … […]

      Reply
    2. Thanks a lot, great class and using this in an upcoming website. Cheers.

      Reply
    3. Thank you for your feedback! Glad to hear that you like this class, and even happier to hear that you are using this class in the future project. :)

      Reply
    4. Nice Class..Thanx

      Reply
    5. Caught exception: : 403 RATE_LIMIT_EXCEEDED

      i m getting this error. pls help

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close