{"id":44882493,"url":"https://github.com/phlib/messagebird-guzzle-client","last_synced_at":"2026-02-17T16:30:49.114Z","repository":{"id":19028864,"uuid":"83450585","full_name":"phlib/messagebird-guzzle-client","owner":"phlib","description":"A Guzzle HTTP Client implementation to override the default MessageBird HTTP client.","archived":false,"fork":false,"pushed_at":"2022-03-30T12:33:37.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-02T21:16:31.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phlib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-28T15:48:18.000Z","updated_at":"2022-03-30T08:28:51.000Z","dependencies_parsed_at":"2022-07-23T02:15:04.827Z","dependency_job_id":null,"html_url":"https://github.com/phlib/messagebird-guzzle-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/phlib/messagebird-guzzle-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlib%2Fmessagebird-guzzle-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlib%2Fmessagebird-guzzle-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlib%2Fmessagebird-guzzle-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlib%2Fmessagebird-guzzle-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phlib","download_url":"https://codeload.github.com/phlib/messagebird-guzzle-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlib%2Fmessagebird-guzzle-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29549795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"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":[],"created_at":"2026-02-17T16:30:47.293Z","updated_at":"2026-02-17T16:30:49.108Z","avatar_url":"https://github.com/phlib.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phlib/messagebird-guzzle-client\n\n[![Build Status](https://img.shields.io/travis/phlib/messagebird-guzzle-client/master.svg?style=flat-square)](https://travis-ci.org/phlib/messagebird-guzzle-client)\n[![Codecov](https://img.shields.io/codecov/c/github/phlib/messagebird-guzzle-client.svg?style=flat-square)](https://codecov.io/gh/phlib/messagebird-guzzle-client)\n[![Latest Stable Version](https://img.shields.io/packagist/v/phlib/messagebird-guzzle-client.svg?style=flat-square)](https://packagist.org/packages/phlib/messagebird-guzzle-client)\n[![Total Downloads](https://img.shields.io/packagist/dt/phlib/messagebird-guzzle-client.svg?style=flat-square)](https://packagist.org/packages/phlib/messagebird-guzzle-client)\n![Licence](https://img.shields.io/github/license/phlib/messagebird-guzzle-client.svg?style=flat-square)\n\nMessageBird Guzzle HTTP client implementation.\n\nAllows you to replace the Message Bird HTTP Client with an implementation that uses the Guzzle HTTP Client. This means\nthere is a more control over certain options in the client.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require phlib/messagebird-guzzle-client\n```\n\n## Creating a HTTP Client\n\n``` php\n\u003c?php\nuse Phlib\\MbGuzzleClient\\Http\\Client;\nuse GuzzleHttp\\Client as GuzzleClient;\n\n$guzzleClient = new GuzzleClient($options = []);\n$httpClient = new Client(MessageBird\\Client::ENDPOINT, $guzzleClient);\n\n```\n\n## Using the HTTP Client with MessageBird\n\n``` php\n\n$messageBird = new \\MessageBird\\Client('YOUR_ACCESS_KEY', $httpClient);\n\n// OR\n\n$messageBird = new \\Phlib\\MbGuzzleClient\\Client('YOUR_ACCESS_KEY');\n \n// Get you balance\n$balance = $messageBird-\u003ebalance-\u003eread();\n\n```\n\n## Problems\n\n[HTTPClient injection through constructor is wrongfully reused](https://github.com/messagebird/php-rest-api/issues/29)\n\nWhen constructing the MessageBird client with a custom HTTP client implementation, as is done here, the side effect is\nthat the same client is used for API and Chat API endpoints.\n\n## License\n\nThis package is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Lesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphlib%2Fmessagebird-guzzle-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphlib%2Fmessagebird-guzzle-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphlib%2Fmessagebird-guzzle-client/lists"}