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

Abandoned → [initphp/http](/?search=initphp%2Fhttp)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

initphp/http-factory
====================

PSR17 HTTP Factory Library (DEPRECATED — merged into initphp/http:^2.2)

1.0.1(1mo ago)014MITPHPPHP &gt;=7.4

Since Jul 10Pushed 1mo ago1 watchersCompare

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

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

HTTPFactory
===========

[](#httpfactory)

> ## ⚠️ DEPRECATED — Use [`initphp/http`](https://github.com/InitPHP/HTTP) instead
>
> [](#️-deprecated--use-initphphttp-instead)
>
> As part of the InitPHP package consolidation, **this package has been merged into [`initphp/http`](https://github.com/InitPHP/HTTP) starting with version 2.2.** The consolidated package ships its own PSR-17 factory under `\InitPHP\HTTP\Factory\Factory`.
>
> This repository is kept read-only for historical reference. **No further updates will be released.**
>
> ### Why this package no longer works
>
> [](#why-this-package-no-longer-works)
>
> `\InitPHP\HTTPFactory\HTTPFactory` was written against `initphp/http:^1.x`, which used the flat `\InitPHP\HTTP\*` namespace. In `initphp/http:^2.0` those classes moved to `\InitPHP\HTTP\Message\*`, so this package's `use` statements no longer resolve.
>
> ### Migration
>
> [](#migration)
>
> ```
> - "initphp/http-factory": "^1.0",
> - "initphp/http": "^1.0",
> + "initphp/http": "^2.2"
> ```
>
>
>
> Your existing imports keep working: `initphp/http:^2.2` ships a `class_alias` so `\InitPHP\HTTPFactory\HTTPFactory` remains resolvable. Composer also declares a `replace` for this package, so the two will not be installed side-by-side.
>
> When you next touch the code, prefer the canonical class:
>
> ```
> // Before
> use InitPHP\HTTPFactory\HTTPFactory;
> $factory = new HTTPFactory();
>
> // After
> use InitPHP\HTTP\Factory\Factory;
> $factory = new Factory();
> ```

---

PSR-17 HTTP Factory Library

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

[](#requirements)

- PHP 7.4 or higher
- PSR-17 HTTP Factory Package
- [InitPHP HTTP Library](https://github.com/InitPHP/HTTP)

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

[](#installation)

```
composer require initphp/http-factory

```

Usage
-----

[](#usage)

```
require_once "vendor/autoload.php";
use InitPHP\HTTPFactory\HTTPFactory;

$http = new HTTPFactory();

$request = $http->createRequest('GET', 'https://www.muhammetsafak.com.tr');
```

Credits
-------

[](#credits)

- [Muhammet ŞAFAK](https://www.muhammetsafak.com.tr) &lt;&gt;

License
-------

[](#license)

Copyright © 2022 [MIT License](./LICENSE)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance92

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

40d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b6b34f3ac8938d8ee52ba3bd260680855dc5715c7b2929d9380de30d15a67dd?d=identicon)[muhammetsafak](/maintainers/muhammetsafak)

---

Top Contributors

[![muhammetsafak](https://avatars.githubusercontent.com/u/104234499?v=4)](https://github.com/muhammetsafak "muhammetsafak (3 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/initphp-http-factory/health.svg)](https://phpackages.com/packages/initphp-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)[sunrise/http-router

A powerful solution as the foundation of your project.

17451.6k10](/packages/sunrise-http-router)

PHPackages © 2026

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