https://github.com/phlib/messagebird-guzzle-client
A Guzzle HTTP Client implementation to override the default MessageBird HTTP client.
https://github.com/phlib/messagebird-guzzle-client
Last synced: 5 months ago
JSON representation
A Guzzle HTTP Client implementation to override the default MessageBird HTTP client.
- Host: GitHub
- URL: https://github.com/phlib/messagebird-guzzle-client
- Owner: phlib
- License: lgpl-3.0
- Created: 2017-02-28T15:48:18.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T12:33:37.000Z (over 4 years ago)
- Last Synced: 2025-08-02T21:16:31.274Z (11 months ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# phlib/messagebird-guzzle-client
[](https://travis-ci.org/phlib/messagebird-guzzle-client)
[](https://codecov.io/gh/phlib/messagebird-guzzle-client)
[](https://packagist.org/packages/phlib/messagebird-guzzle-client)
[](https://packagist.org/packages/phlib/messagebird-guzzle-client)

MessageBird Guzzle HTTP client implementation.
Allows you to replace the Message Bird HTTP Client with an implementation that uses the Guzzle HTTP Client. This means
there is a more control over certain options in the client.
## Install
Via Composer
``` bash
$ composer require phlib/messagebird-guzzle-client
```
## Creating a HTTP Client
``` php
balance->read();
```
## Problems
[HTTPClient injection through constructor is wrongfully reused](https://github.com/messagebird/php-rest-api/issues/29)
When constructing the MessageBird client with a custom HTTP client implementation, as is done here, the side effect is
that the same client is used for API and Chat API endpoints.
## License
This package is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see .