PHPackages                             mcg-web/promise-factory - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mcg-web/promise-factory

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mcg-web/promise-factory
=======================

This library tries to create a simple promise factory standard while waiting for a psr.

v0.2.0(9y ago)2195MITPHPPHP ^5.5|^7.0

Since Nov 13Pushed 9y ago2 watchersCompare

[ Source](https://github.com/mcg-web/promise-factory)[ Packagist](https://packagist.org/packages/mcg-web/promise-factory)[ RSS](/packages/mcg-web-promise-factory/feed)WikiDiscussions master Synced 4w ago

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

PromiseFactory
==============

[](#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](https://github.com/reactphp/promise) and [Guzzle/Promises](https://github.com/guzzle/promises).

[![Build Status](https://camo.githubusercontent.com/fb91fb9d3536150f9c7b4eacf998338ec5d7cc553649e9e452c166ea5ac4d79a/68747470733a2f2f7472617669732d63692e6f72672f6d63672d7765622f70726f6d6973652d666163746f72792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mcg-web/promise-factory)[![Coverage Status](https://camo.githubusercontent.com/5e48ee94fb930677e34e8096a86aefe7eefcd39f2118d3f0b2c0ee05b994492b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d63672d7765622f70726f6d6973652d666163746f72792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mcg-web/promise-factory?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/224d2fbfb4c61fba51cd7dd2ae1a806b5b1898a8f88735e0830fb4b6a712ca21/68747470733a2f2f706f7365722e707567782e6f72672f6d63672d7765622f70726f6d6973652d666163746f72792f76657273696f6e)](https://packagist.org/packages/mcg-web/promise-factory)[![License](https://camo.githubusercontent.com/5c5703885bbc259df67bf8284acc632a2e4a3bea0e691b1a7b4167885a827fed/68747470733a2f2f706f7365722e707567782e6f72672f6d63672d7765622f70726f6d6973652d666163746f72792f6c6963656e7365)](https://packagist.org/packages/mcg-web/promise-factory)

Getting Started
---------------

[](#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
-----------------

[](#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](https://github.com/mcg-web/promise-factory/blob/master/LICENSE) license.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

3515d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1496283?v=4)[Jeremiah VALERIE](/maintainers/mcg-web)[@mcg-web](https://github.com/mcg-web)

---

Top Contributors

[![mcg-web](https://avatars.githubusercontent.com/u/1496283?v=4)](https://github.com/mcg-web "mcg-web (2 commits)")

---

Tags

factorypromiseGuzzlereact

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mcg-web-promise-factory/health.svg)

```
[![Health](https://phpackages.com/badges/mcg-web-promise-factory/health.svg)](https://phpackages.com/packages/mcg-web-promise-factory)
```

###  Alternatives

[guzzlehttp/promises

Guzzle promises library

7.7k1.0B679](/packages/guzzlehttp-promises)[psr/http-factory

PSR-17: Common interfaces for PSR-7 HTTP message factories

1.9k728.6M2.5k](/packages/psr-http-factory)[kevinrob/guzzle-cache-middleware

A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)

43518.2M127](/packages/kevinrob-guzzle-cache-middleware)[http-interop/http-factory-guzzle

An HTTP Factory using Guzzle PSR7

582175.4M624](/packages/http-interop-http-factory-guzzle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
