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

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

pinga/http
==========

Hypertext Transfer Protocol (HTTP) utilities for PHP

v0.1(3y ago)060113MITPHPPHP &gt;=8.1.0

Since Jan 27Pushed 3y agoCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (3)

Pinga HTTP
==========

[](#pinga-http)

Hypertext Transfer Protocol (HTTP) utilities for PHP

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

[](#requirements)

- PHP 8.1.0+

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

[](#installation)

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

    ```
    $ composer require pinga/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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.1% 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

Unknown

Total

1

Last Release

1207d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

httphttpsheaders

### Embed Badge

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

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

###  Alternatives

[league/uri

URI manipulation library

1.1k206.4M277](/packages/league-uri)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

536204.9M23](/packages/league-uri-interfaces)[react/http

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

78026.4M414](/packages/react-http)[mashape/unirest-php

Unirest PHP

1.3k9.7M161](/packages/mashape-unirest-php)[paragonie/csp-builder

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

5412.8M18](/packages/paragonie-csp-builder)[padraic/humbug_get_contents

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

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

PHPackages © 2026

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