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

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

codejet/http
============

PSR7 http-messages implementation

0.0.1(9y ago)014MITPHPPHP ^7.0CI failing

Since Dec 30Pushed 5y ago2 watchersCompare

[ Source](https://github.com/CodeJetNet/http)[ Packagist](https://packagist.org/packages/codejet/http)[ RSS](/packages/codejet-http/feed)WikiDiscussions master Synced 2mo ago

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

Http
====

[](#http)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c4e76109e63a64636a478dc709f1ae604ce1ace690237ebce9f758b153e4c1a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656a65742f687474702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codejet/http)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0e35ea4fbbfc9bbbbe220d8ffcf536954d5d9677347967113d7e563e36f3eb55/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f436f64654a65744e65742f487474702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/CodeJetNet/Http)[![Coverage Status](https://camo.githubusercontent.com/7ae747cc911462e88863bb157c6addc7254f1f1822264ca12e3e49a61b365681/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f436f64654a65744e65742f487474702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/CodeJetNet/Http/code-structure)[![Quality Score](https://camo.githubusercontent.com/a295eba7dbace255f7d7335599f30c43978c35437237b73e543e52c2c8a010ad/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f436f64654a65744e65742f487474702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/CodeJetNet/Http)[![Total Downloads](https://camo.githubusercontent.com/ae94039327cb40b484a5123edc4037849faca980b030792e71723fe2b78583b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656a65742f687474702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codejet/http)

This is a Work In Progress.

This is an exercise in understanding the http-interop related standards and is an implementation of [PSR-7 HTTP message interfaces](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message.md) and [HTTP-Factory Interfaces](https://github.com/php-fig/fig-standards/blob/master/proposed/http-factory/http-factory.md)

Install
-------

[](#install)

Via Composer

```
$ composer require codejet/http
```

Usage
-----

[](#usage)

### Uri

[](#uri)

Using the Uri class itself.

```
$uri = new CodeJet\Http\Uri('https://www.example.com');
echo $uri;
```

Or, using the [http-interop proposed factory](https://github.com/http-interop/http-factory).

```
$uri = new CodeJet\Http\Factory\UriFactory('https://www.example.com');
echo $uri;
```

### Request

[](#request)

Creating a request using the PSR7 RequestInterface methods.

```
$request = (new CodeJet\Http\Request())->withMethod('POST')->withUri($uri);
echo $uri;
```

### Stream

[](#stream)

Using the class constructor.

```
$handle = fopen('php://input','r');
$stream = new CodeJet\Http\Stream($handle);
```

Or, using the [http-interop proposed StreamFactory](https://github.com/http-interop/http-factory).

From a string:

```
$string = "I love lamp.";
$stream = (new CodeJet\Http\Factory\StreamFactory())->createStream($string);
```

From a file:

```
$stream = (new CodeJet\Http\Factory\StreamFactory())->createStreamFromFile('php://input', 'r');
```

From a resource handle:

```
$handle = fopen('php://input','r');
$stream = (new CodeJet\Http\Factory\StreamFactory())->createStreamFromResource($handle);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

Unknown

Total

1

Last Release

3422d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2b92b5a53a8e8f3b2e4065273a99f31fe19b950eb058cd1bd620cde48399420?d=identicon)[Houghtelin](/maintainers/Houghtelin)

---

Top Contributors

[![jhoughtelin](https://avatars.githubusercontent.com/u/6137941?v=4)](https://github.com/jhoughtelin "jhoughtelin (25 commits)")

---

Tags

httpcodejet

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[psr/http-factory

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

1.9k692.9M1.9k](/packages/psr-http-factory)[psr/http-client

Common interface for HTTP clients

1.7k680.7M2.1k](/packages/psr-http-client)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k296.6M807](/packages/symfony-psr-http-message-bridge)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[php-http/client-common

Common HTTP Client implementations and tools for HTTPlug

1.0k225.5M571](/packages/php-http-client-common)

PHPackages © 2026

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