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(9y ago)17063MITPHP

Since Jun 18Pushed 9y 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 2w ago

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

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

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

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

3298d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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