PHPackages                             effectra/http-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. effectra/http-factory

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

effectra/http-factory
=====================

The Effectra HTTP Factory package.

v1.0.1(2y ago)0231MITPHP

Since Jun 19Pushed 2y agoCompare

[ Source](https://github.com/effectra/http-factory)[ Packagist](https://packagist.org/packages/effectra/http-factory)[ RSS](/packages/effectra-http-factory/feed)WikiDiscussions main Synced today

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

Effectra HTTP Factory
=====================

[](#effectra-http-factory)

Effectra HTTP Factory is a PHP library that provides factory classes for creating PSR-7 compliant HTTP message objects. It follows the PSR-17 standard for HTTP factories, ensuring interoperability and compatibility with other PSR-7 compliant libraries and frameworks.

Features
--------

[](#features)

- Factory classes for creating PSR-7 compliant HTTP message objects.
- Implementation of the `psr/http-factory` interfaces.
- Easy creation of HTTP messages such as requests, responses, URIs, and more.

Requirements
------------

[](#requirements)

- PHP 7.2 or higher

Installation
------------

[](#installation)

You can install the library using [Composer](https://getcomposer.org/). Run the following command in your project directory:

```
composer require effectra/http-factory

```

Usage
-----

[](#usage)

### Creating a Stream with StreamFactory

[](#creating-a-stream-with-streamfactory)

```
use Effectra\Http\Factory\StreamFactory;

$streamFactory = new StreamFactory();
$stream = $streamFactory->createStream('Hello, world!');
```

### Creating a Request with RequestFactory

[](#creating-a-request-with-requestfactory)

```
use Effectra\Http\Factory\RequestFactory;

$requestFactory = new RequestFactory();
$request = $requestFactory->createRequest('GET', 'https://example.com');
```

### Creating a ServerRequest with ServerRequestFactory

[](#creating-a-serverrequest-with-serverrequestfactory)

```
use Effectra\Http\Factory\ServerRequestFactory;

$serverRequestFactory = new ServerRequestFactory();
$serverRequest = $serverRequestFactory->createServerRequest('POST', '/submit-form', $_SERVER);
```

### Creating a Response with ResponseFactory

[](#creating-a-response-with-responsefactory)

```
use Effectra\Http\Factory\ResponseFactory;

$responseFactory = new ResponseFactory();
$response = $responseFactory->createResponse(200, 'OK');
```

### Creating a Uri with UriFactory

[](#creating-a-uri-with-urifactory)

```
use Effectra\Http\Factory\UriFactory;

$uriFactory = new UriFactory();
$uri = $uriFactory->createUri('https://example.com');
```

For more examples and detailed usage instructions, please refer to the documentation.

Contributing
------------

[](#contributing)

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on the [GitHub repository](https://github.com/effectra/http-factory).

License
-------

[](#license)

Effectra HTTP Factory is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

---

Thank you for using the Effectra HTTP Factory library. If you have any questions or need further assistance, feel free to reach out to us.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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 ~115 days

Total

2

Last Release

994d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e6219ae87e98df8783b2f595b013035dd183c0712afd24045a8acf0a40c3bdf?d=identicon)[effectra](/maintainers/effectra)

---

Top Contributors

[![BMTmohammedtaha](https://avatars.githubusercontent.com/u/95439605?v=4)](https://github.com/BMTmohammedtaha "BMTmohammedtaha (8 commits)")

---

Tags

httphttp-factoryphppsrpsr-17psr-7

### Embed Badge

![Health badge](/badges/effectra-http-factory/health.svg)

```
[![Health](https://phpackages.com/badges/effectra-http-factory/health.svg)](https://phpackages.com/packages/effectra-http-factory)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[mezzio/mezzio

PSR-15 Middleware Microframework

3923.8M125](/packages/mezzio-mezzio)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

185702.8k43](/packages/laudis-neo4j-php-client)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28150.5k](/packages/phpro-http-tools)

PHPackages © 2026

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