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

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

delight-im/http
===============

Hypertext Transfer Protocol (HTTP) utilities for PHP

v2.1.0(4y ago)191.4M↑29.1%44MITPHPPHP &gt;=5.3.0

Since Jun 9Pushed 4y ago2 watchersCompare

[ Source](https://github.com/delight-im/PHP-HTTP)[ Packagist](https://packagist.org/packages/delight-im/http)[ Docs](https://github.com/delight-im/PHP-HTTP)[ RSS](/packages/delight-im-http/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (11)Used By (4)

PHP-HTTP
========

[](#php-http)

Hypertext Transfer Protocol (HTTP) utilities for PHP

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

[](#requirements)

- PHP 5.3.0+

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

[](#installation)

1. Include the library via Composer [\[?\]](https://github.com/delight-im/Knowledge/blob/master/Composer%20(PHP).md):

    ```
    $ composer require delight-im/http

    ```
2. Include the Composer autoloader:

    ```
    require __DIR__ . '/vendor/autoload.php';
    ```

Usage
-----

[](#usage)

### Response headers

[](#response-headers)

- Retrieving a header (with optional value prefix)

    ```
    $header = \Delight\Http\ResponseHeader::get('Content-Type');
    // or
    $header = \Delight\Http\ResponseHeader::get('Content-Type', 'text/');
    ```
- Setting a header (overwriting other headers with the same name)

    ```
    \Delight\Http\ResponseHeader::set('X-Frame-Options', 'sameorigin');
    ```
- Adding a header (preserving other headers with the same name)

    ```
    \Delight\Http\ResponseHeader::add('Vary', 'User-Agent');
    ```
- Removing a header (with optional value prefix)

    ```
    $success = \Delight\Http\ResponseHeader::remove('X-Powered-By');
    // or
    $success = \Delight\Http\ResponseHeader::remove('X-Powered-By', 'PHP');
    ```
- Retrieving and removing a header at once (with optional value prefix)

    ```
    $header = \Delight\Http\ResponseHeader::take('Set-Cookie');
    // or
    $header = \Delight\Http\ResponseHeader::take('Set-Cookie', 'mysession=');
    ```

Contributing
------------

[](#contributing)

All contributions are welcome! If you wish to contribute, please create an issue first so that your feature, problem or question can be discussed.

License
-------

[](#license)

This project is licensed under the terms of the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~217 days

Recently: every ~0 days

Total

10

Last Release

1725d ago

Major Versions

v1.1.0 → v2.0.02016-07-21

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6597567?v=4)[delight.im](/maintainers/delight-im)[@delight-im](https://github.com/delight-im)

---

Top Contributors

[![ocram](https://avatars.githubusercontent.com/u/1681478?v=4)](https://github.com/ocram "ocram (43 commits)")

---

Tags

httphttpsheaders

### Embed Badge

![Health badge](/badges/delight-im-http/health.svg)

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

###  Alternatives

[league/uri

URI manipulation library

1.1k240.0M391](/packages/league-uri)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

539238.7M44](/packages/league-uri-interfaces)[react/http

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

78127.7M466](/packages/react-http)[mashape/unirest-php

Unirest PHP

1.3k10.1M163](/packages/mashape-unirest-php)[paragonie/csp-builder

Easily add and update Content-Security-Policy headers for your project

5413.0M26](/packages/paragonie-csp-builder)[padraic/humbug_get_contents

Secure wrapper for accessing HTTPS resources with file\_get\_contents for PHP 5.3+

1255.4M5](/packages/padraic-humbug-get-contents)

PHPackages © 2026

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