PHPackages                             dspacelabs/http-message - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. dspacelabs/http-message

Abandoned → [sonsofphp/http-message](/?search=sonsofphp%2Fhttp-message)Library[PSR &amp; Standards](/categories/psr-standards)

dspacelabs/http-message
=======================

PSR-7 Library

v0.2.0(8y ago)17061MITPHP

Since Jun 18Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (3)Used By (1)

dspacelabs/http-message [![Build Status](https://camo.githubusercontent.com/8baa3853f01065392bcc540ea488b1356e4b1da6021b2e6b315ee38fde392138/68747470733a2f2f7472617669732d63692e6f72672f6453706163654c6162732f687474702d6d6573736167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dSpaceLabs/http-message)
============================================================================================================================================================================================================================================================================================================================

[](#dspacelabshttp-message-)

This is a simple, very basic implementation of the PSR-7 standard. This library does not come with a client and only deals with the messages.

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

[](#installation)

```
composer require dspacelabs/http-message
```

Examples
--------

[](#examples)

### Creating URIs

[](#creating-uris)

```
use Dspacelabs\Component\Http\Message\Uri;

$uri = (new Uri())
    ->withScheme('http')
    ->withHost('www.example.com');
```

If you want something less verbose, you can also pass in the URL when creating new Uri objects.

```
use Dspacelabs\Component\Http\Message\Uri;

$uri = new Uri('http://www.example.com');
```

### Creating Requests

[](#creating-requests)

```
use Dspacelabs\Component\Http\Message\Uri;
use Dspacelabs\Component\Http\Message\Request;

$request = new Request();
$request
    ->withMethod('GET')
    ->withUri(new Uri('http://www.example.com'));
```

### Creating Responses

[](#creating-responses)

```
use Dspacelabs\Component\Http\Message\Response;

$resposne = new Response();
$response
    ->withStatus(200, 'OK');
```

Testing
-------

[](#testing)

Testing is done with PHPUnit and Phing. Once you make updates, run the command

```
./vendor/bin/phing
```

And this will run PHPUnit and give you test results.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

3246d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/447419?v=4)[Joshua Estes](/maintainers/joshuaestes)[@JoshuaEstes](https://github.com/JoshuaEstes)

---

Top Contributors

[![JoshuaEstes](https://avatars.githubusercontent.com/u/447419?v=4)](https://github.com/JoshuaEstes "JoshuaEstes (32 commits)")

---

Tags

http-serverphppsr-7psr7

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[dragon-code/contracts

A set of contracts for any project

108.8M37](/packages/dragon-code-contracts)

PHPackages © 2026

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