Skip to content

This library tries to create a simple promise factory standard while waiting for a psr. It Comes out of the box with factory for ReactPhp/Promise and Guzzle/Promises.

License

Notifications You must be signed in to change notification settings

mcg-web/promise-factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PromiseFactory

This library tries to create a simple promise factory standard while waiting for a psr. It Comes out of the box with factory for ReactPhp/Promise and Guzzle/Promises.

Build Status Coverage Status Latest Stable Version License

Getting Started

First, install PromiseFactory using composer.

composer require "mcg-web/promise-factory"

Optional to use Guzzle:

composer require "guzzlehttp/promises"

Optional to use ReactPhp:

composer require "react/promise"

Supported Factory

Guzzle: McGWeb\PromiseFactory\Factory\GuzzleHttpPromiseFactory

ReactPhp: McGWeb\PromiseFactory\Factory\ReactPromiseFactory

To use a custom Promise lib you can implement McGWeb\PromiseFactory\PromiseFactoryInterface

## License

McGWeb/PromiseFactory is released under the MIT license.

About

This library tries to create a simple promise factory standard while waiting for a psr. It Comes out of the box with factory for ReactPhp/Promise and Guzzle/Promises.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages