PHPackages                             tickner/guzzle-to-react-promise - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tickner/guzzle-to-react-promise

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tickner/guzzle-to-react-promise
===============================

Transform a Guzzle Promise to a React Promise

v1.0.0(9y ago)13.4k1[1 PRs](https://github.com/christickner/php-guzzle-to-react-promise/pulls)MITPHP

Since Oct 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/christickner/php-guzzle-to-react-promise)[ Packagist](https://packagist.org/packages/tickner/guzzle-to-react-promise)[ RSS](/packages/tickner-guzzle-to-react-promise/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

tickner/guzzle-to-react-promise
===============================

[](#ticknerguzzle-to-react-promise)

A function that will allow you to easily convert a [Guzzle Promise](https://github.com/guzzle/promises) to a [React Promise](https://github.com/reactphp/promise).

Install
-------

[](#install)

`composer require tickner/guzzle-to-react-promise`

Why?
----

[](#why)

React and Guzzle have different promise implementations and they do not interop very well. In a project using ReactPHP, you may need to work with Guzzle for things like async access to the AWS SDK. If this happens, you will find your promise chains break unexpectedly when a Guzzle request promise is returned.

Using the function that this package provides, you can transform that promise into the React promise that your application would prefer to use.

Example
-------

[](#example)

```
