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

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

scriptmancer/http
=================

HTTP foundation layer made by Scriptmancer

v0.9.5(1y ago)00MITPHPPHP ^8.0

Since May 9Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Scriptmancer HTTP
=================

[](#scriptmancer-http)

HTTP foundation layer for the Scriptmancer framework. This package provides a lightweight, modern, and PSR-7 compliant HTTP implementation.

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

[](#requirements)

- PHP 8.0 or higher
- Composer

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

[](#installation)

```
composer require scriptmancer/http
```

Features
--------

[](#features)

- **PSR-7 Compliant**: Implements PSR-7 HTTP message interfaces
- **Request Handling**: Process incoming HTTP requests with ease
- **Response Types**: Support for various response types (HTML, JSON, XML, files, downloads, streams)
- **Middleware System**: Flexible middleware architecture
- **Cookie Management**: Comprehensive cookie handling with support for all modern attributes
- **Session Management**: Robust session handling with flash messages
- **File Uploads**: Simple API for handling file uploads
- **HTTP Client**: Make API requests to external services
- **Server Component**: Process requests and send responses
- **Exception Handling**: HTTP-specific exceptions with proper status codes

Basic Usage
-----------

[](#basic-usage)

### Creating a Simple Server

[](#creating-a-simple-server)

```
