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

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

sauber-php/http
===============

The HTTP component for the Sauber PHP framework

042PHP

Since May 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sauber-php/http)[ Packagist](https://packagist.org/packages/sauber-php/http)[ RSS](/packages/sauber-php-http/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://supportukrainenow.org/)

Http Component
==============

[](#http-component)

[![GitHub release (latest by date)](https://camo.githubusercontent.com/6b8b3a359599b4beb3b1b2761447b0af091fc339cb097777cbf2cd3e18564e87/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f7361756265722d7068702f68747470)](https://camo.githubusercontent.com/6b8b3a359599b4beb3b1b2761447b0af091fc339cb097777cbf2cd3e18564e87/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f7361756265722d7068702f68747470)[![Tests](https://github.com/sauber-php/http/workflows/tests/badge.svg)](https://github.com/sauber-php/http/workflows/tests/badge.svg)[![Static Analysis](https://github.com/sauber-php/http/workflows/static/badge.svg)](https://github.com/sauber-php/http/workflows/static/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/3a340c80ddbef61c7eb2fd4cbf76cb578aaab54e55587f0d71bb12a121a0e335/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7361756265722d7068702f687474702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpfox/container)[![GitHub](https://camo.githubusercontent.com/d97f8f29e14fc0314185d40e218a207f22c2dc10765ab32bdf491e9897ec7e75/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7361756265722d7068702f68747470)](https://camo.githubusercontent.com/d97f8f29e14fc0314185d40e218a207f22c2dc10765ab32bdf491e9897ec7e75/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7361756265722d7068702f68747470)

This is the repository for the HTTP Component used in the Sauber PHP Framework.

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

[](#installation)

You should not need to install this package, as it comes pre-installed with the Sauber PHP Framework, however if you want to use this outside of the framework please use composer:

```
composer require sauber-php/http
```

Usage
-----

[](#usage)

To use the component, you can instantiate with your own container and add routes:

```
$router = new Router(
    container: new Container(),
);

$router->middleware(
    middleware: new PSR15Middleware(),
);

$router->get(
    path: '/',
    handler: fn () => ['test' => time()],
);

$router->handle(
    request: Request::capture(),
);
```

Testing
-------

[](#testing)

To run the tests:

```
./vendor/bin/pest
```

Static Analysis
---------------

[](#static-analysis)

To check the static analysis:

```
./vendor/bin/phpstan analyse
```

Changelog
---------

[](#changelog)

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

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![JustSteveKing](https://avatars.githubusercontent.com/u/6368379?v=4)](https://github.com/JustSteveKing "JustSteveKing (5 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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