mcg-web/promise-factory
Composer 安装命令:
composer require mcg-web/promise-factory
包简介
This library tries to create a simple promise factory standard while waiting for a psr.
README 文档
README
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.
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.
统计信息
- 总下载量: 198
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-13