{"id":29341973,"url":"https://github.com/codehaveli/bitly-php","last_synced_at":"2026-05-18T00:32:59.176Z","repository":{"id":56955102,"uuid":"292490265","full_name":"codehaveli/bitly-php","owner":"codehaveli","description":"Bitly PHP SDK by Codehaveli uses the functionality of Bitly API version 4. This package is in initial release and have very less feature compared to main Bitly API.","archived":false,"fork":false,"pushed_at":"2020-09-20T11:45:23.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T10:12:22.642Z","etag":null,"topics":["api","api-client","api-rest","bitlinks","bitly","bitly-api","bitly-php-sdk","bitly-v4","composer","link-shortener","php","php-bitly","urlshortener"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/codehaveli/bitly-php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codehaveli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-03T06:49:54.000Z","updated_at":"2024-06-26T03:02:30.000Z","dependencies_parsed_at":"2022-08-21T08:50:21.151Z","dependency_job_id":null,"html_url":"https://github.com/codehaveli/bitly-php","commit_stats":null,"previous_names":["codehaveli/bitly-php","codehaveli/bilty-php"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/codehaveli/bitly-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehaveli%2Fbitly-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehaveli%2Fbitly-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehaveli%2Fbitly-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehaveli%2Fbitly-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codehaveli","download_url":"https://codeload.github.com/codehaveli/bitly-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehaveli%2Fbitly-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","api-rest","bitlinks","bitly","bitly-api","bitly-php-sdk","bitly-v4","composer","link-shortener","php","php-bitly","urlshortener"],"created_at":"2025-07-08T10:12:11.681Z","updated_at":"2026-05-18T00:32:59.171Z","avatar_url":"https://github.com/codehaveli.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# Bitly PHP SDK by Codehaveli\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/codehaveli/bilty-php/PHP%20Composer?label=tests)](https://github.com/codehaveli/bilty-php/actions?query=workflow%3A%22PHP+Composer%22)\n[![Latest Stable Version](https://poser.pugx.org/codehaveli/bitly-php/v)](//packagist.org/packages/codehaveli/bitly-php)\n[![Latest Unstable Version](https://poser.pugx.org/codehaveli/bitly-php/v/unstable)](//packagist.org/packages/codehaveli/bitly-php)\n[![Total Downloads](https://poser.pugx.org/codehaveli/bitly-php/downloads)](//packagist.org/packages/codehaveli/bitly-php)\n[![Monthly Downloads](https://poser.pugx.org/codehaveli/bitly-php/d/monthly)](//packagist.org/packages/codehaveli/bitly-php)\n[![License](https://poser.pugx.org/codehaveli/bitly-php/license)](//packagist.org/packages/codehaveli/bitly-php)\n\n\n* [Description](#description)\n* [Installation](#installation)\n* [Usage](#usage)\n\t* [Link](#link)\n* [Terms of Use](#terms-of-use)\n* [Other Resource](#other-resource)\n\n\n\n### Description\n\nA PHP wrapper for the bit.ly API. This package use Bitly API version v4.\n\n### Installation\n\nInstall via composer\n\n`composer require codehaveli/bitly-php:dev-master --prefer-source`\n\n### Usage\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\nuse Codehaveli\\Bitly;\nuse Codehaveli\\Exceptions\\BitlyErrorException;\n\n// First setup your credentials provided by Bitly\n\n$accessToken  = \"ACCESS_TOKEN_FROM_BITLY\";\n$guid         = \"GUID_FROM_BITLY\";\n\nBitly::init($accessToken, $guid);\n```\n\nOnce credentials are set you can use available resources.\n\nResources availables:\n\n- **Link** \n  * Available methods: `getUrl`\n\n\n\n\n#### Link\n\n```php\n\u003c?php\n\nuse Codehaveli\\Bitly;\nuse Codehaveli\\Exceptions\\BitlyErrorException;\n\nBitly::init($access_token, $guid);\n\n$link = Bitly::link();\n\ntry {\n\n\t$shortLink = $link-\u003egetUrl(\"https://www.codehaveli.com/\");  // https://bit.ly/3lF0yKR\n\n} catch (BitlyErrorException $e) {\n\n\t$code    = $e-\u003egetCode();\n\t$message = $e-\u003egetMessage();\n}\n```\n\n### Terms of Use\n \nThis is not a Official SDK of Bitly\nPlease read [privacy](https://bitly.com/pages/privacy) and [terms of service](https://bitly.com/pages/terms-of-service) of [Bitly](https://bitly.com/) before use.\n### Other Resource\n1. Wordpress Plugin by Codehaveli [Codehaveli Bitly URL Shortener](https://bit.ly/codehaveli-bitly-url-shortener) \n2. [Bitly API Documentation](https://dev.bitly.com/)\n3. [Codehaveli Blog](https://www.codehaveli.com/blogs/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehaveli%2Fbitly-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodehaveli%2Fbitly-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehaveli%2Fbitly-php/lists"}