PHPackages                             temant-framework/http-core - 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. [API Development](/categories/api)
4. /
5. temant-framework/http-core

ActiveLibrary[API Development](/categories/api)

temant-framework/http-core
==========================

PSR-7 &amp; PSR-17 Implementation

v1.0.0(6mo ago)02MITPHPPHP ^8.4CI passing

Since Oct 27Pushed 6mo agoCompare

[ Source](https://github.com/temant-framework/Http-Core)[ Packagist](https://packagist.org/packages/temant-framework/http-core)[ RSS](/packages/temant-framework-http-core/feed)WikiDiscussions main Synced 2mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Temant HTTP Core
================

[](#temant-http-core)

[![Packagist Version](https://camo.githubusercontent.com/abbffc94e0b6d407ec4c514b92da85a4b02558001f2ffb2e661201d4af60234a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656d616e742d6672616d65776f726b2f687474702d636f7265)](https://packagist.org/packages/temant-framework/http-core)[![Packagist Downloads](https://camo.githubusercontent.com/71af3ba54b6a0b358e1f28606a5fdb6ae5149d00a2a75135262ac216f97251f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656d616e742d6672616d65776f726b2f687474702d636f7265)](https://packagist.org/packages/temant-framework/http-core)[![CI Status](https://github.com/temant-framework/http-core/actions/workflows/ci.yml/badge.svg)](https://github.com/temant-framework/http-core/actions/workflows/ci.yml)[![PHPStan Level](https://camo.githubusercontent.com/942bdbddc7b2adea1d63ed80793492d06d72ef41911edcba33310d0745581548/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230392d627269676874677265656e)](https://github.com/temant-framework/temant-http-core)[![Coverage](https://camo.githubusercontent.com/2c8a840df5fa3d233e17d94ff95891e29f88905a9f9fe29aa976afbc6f206431/68747470733a2f2f636f6465636f762e696f2f67682f74656d616e742d6672616d65776f726b2f687474702d636f72652f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/temant-framework/http-core)

Temant HTTP Core is a lightweight implementation of the PSR-7 HTTP message interfaces and the PSR-17 HTTP message factory interfaces. It provides a clean and modern foundation for working with HTTP requests, responses, streams, URIs, and uploaded files in PHP.

The goal of this library is to offer a simple and standards-compliant package written for modern PHP without unnecessary overhead.

---

Features
--------

[](#features)

- Fully compliant with [PSR-7](https://www.php-fig.org/psr/psr-7/) and [PSR-17](https://www.php-fig.org/psr/psr-17/)
- Focused and minimal API surface
- Immutable message objects
- Supports all HTTP message components, including headers, bodies, uploaded files and URIs
- Tested and analyzed with PHPUnit and PHPStan

---

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

[](#requirements)

- PHP `8.4` or higher
- `psr/http-message` ^2.0
- `psr/http-factory` ^1.1

---

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

[](#installation)

Install via Composer:

```
composer require temant/http-core
```

---

Usage Example
-------------

[](#usage-example)

```
