{"id":26746706,"url":"https://github.com/bitly-community/bitly-php","last_synced_at":"2026-03-04T13:01:27.878Z","repository":{"id":279516901,"uuid":"939072644","full_name":"bitly-community/bitly-php","owner":"bitly-community","description":"🔗 PHP library for Bitly API.","archived":false,"fork":false,"pushed_at":"2025-11-24T14:36:49.000Z","size":1065,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-27T13:58:04.453Z","etag":null,"topics":["bitly","bitly-api","bitly-php-sdk","composer","composer-package","janephp","library","package","php","php-library","php-sdk","sdk","sdk-php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/bitly-api/sdk","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/bitly-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-26T00:17:23.000Z","updated_at":"2025-09-17T02:42:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"3273e67d-dcc1-421e-8407-94eeb218a323","html_url":"https://github.com/bitly-community/bitly-php","commit_stats":null,"previous_names":["bitly-community/bitly-php"],"tags_count":8,"template":false,"template_full_name":"remarkablemark/janephp-template","purl":"pkg:github/bitly-community/bitly-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitly-community%2Fbitly-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitly-community%2Fbitly-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitly-community%2Fbitly-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitly-community%2Fbitly-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitly-community","download_url":"https://codeload.github.com/bitly-community/bitly-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitly-community%2Fbitly-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30081052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T12:28:08.313Z","status":"ssl_error","status_checked_at":"2026-03-04T12:27:28.210Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["bitly","bitly-api","bitly-php-sdk","composer","composer-package","janephp","library","package","php","php-library","php-sdk","sdk","sdk-php"],"created_at":"2025-03-28T09:15:12.040Z","updated_at":"2026-03-04T13:01:27.862Z","avatar_url":"https://github.com/bitly-community.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitly-php\n\n[![packagist](https://img.shields.io/packagist/v/bitly-api/sdk)](https://packagist.org/packages/bitly-api/sdk)\n[![build](https://github.com/bitly-community/bitly-php/actions/workflows/build.yml/badge.svg)](https://github.com/bitly-community/bitly-php/actions/workflows/build.yml)\n[![test](https://github.com/bitly-community/bitly-php/actions/workflows/test.yml/badge.svg)](https://github.com/bitly-community/bitly-php/actions/workflows/test.yml)\n\nPHP library for [Bitly](https://bitly.com/). Code is generated using the [OpenAPI spec](https://dev.bitly.com/docs/sdks/openapi-30/). See the [API reference](https://dev.bitly.com/api-reference).\n\n## Requirements\n\n### Version\n\nPHP \u003e=8.0\n\n### API Key\n\nGenerate an [access token](https://app.bitly.com/settings/api/).\n\n## Install\n\nInstall the package with [Composer](https://getcomposer.org/):\n\n```sh\ncomposer require bitly-api/sdk\n```\n\nIf you're missing a package providing `psr/http-client-implementation`:\n\n```sh\ncomposer require php-http/guzzle7-adapter\n```\n\nAdd [autoloading](https://getcomposer.org/doc/01-basic-usage.md#autoloading):\n\n```php\nrequire_once 'vendor/autoload.php';\n```\n\n## Usage\n\nInstantiate the SDK:\n\n```php\nuse Bitly\\Bitly;\n\n$bitly = new Bitly('YOUR_API_KEY');\n\n$client = $bitly-\u003eclient;\n```\n\nConvert a long URL to a Bitlink:\n\n```php\nuse Bitly\\Bitly;\nuse Bitly\\Model\\Shorten;\n\n$bitly = new Bitly('YOUR_API_KEY');\n\n$shorten = new Shorten();\n$shorten-\u003esetLongUrl('https://example.com/my-long-url');\n$response = $bitly-\u003eclient-\u003ecreateBitLink($shorten);\n```\n\nHandle an API error:\n\n```php\nuse Bitly\\Bitly;\n\n$bitly = new Bitly('YOUR_API_KEY');\n\ntry {\n    $bitly-\u003eclient-\u003egetBitlink('http://bit.ly/2OUJim0');\n} catch (Throwable $exception) {\n    echo $exception-\u003egetMessage();\n    echo $exception-\u003egetCode();\n}\n```\n\n## Scripts\n\n### `composer build`\n\nGenerate the code:\n\n```sh\ncomposer build\n```\n\n### `composer clean`\n\nDelete the `lib/` directory:\n\n```sh\ncomposer clean\n```\n\n### `composer test`\n\nRun the tests:\n\n```sh\ncomposer test\n```\n\n## About This Package\n\nThis package is automatically generated by [Jane](https://github.com/janephp/janephp).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitly-community%2Fbitly-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitly-community%2Fbitly-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitly-community%2Fbitly-php/lists"}