PHPackages                             phpf/httputil - 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. phpf/httputil

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

phpf/httputil
=============

Dependency-free HTTP Utilities

031PHP

Since May 19Pushed 12y ago1 watchersCompare

[ Source](https://github.com/phpf/HttpUtil)[ Packagist](https://packagist.org/packages/phpf/httputil)[ RSS](/packages/phpf-httputil/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

HttpUtil
========

[](#httputil)

Utilities for working with HTTP requests and responses.

- PHP 5.3+
- No dependencies
- Cross-platform

\####Primary features

- Full set of functions for retrieving request headers
- Utilities similar to those found in the pecl\_http extension (v1), such as `http_get_request_headers()` and `http_negotiate_content_type()`.
- some general-use classes and functions for negotiating request header values based on `q`
- a fallback for `http_response_code()` (PHP &lt; 5.4)
- Mimetype helpers and some other stuff

\###Function list

The following functions are based on, and largely consistent with, their `pecl_http` extension (v1) counterparts:

- **`http_build_url()`**
- **`http_date()`**
- **`http_redirect()`**
- **`http_send_status()`**
- **`http_send_content_type()`**
- **`http_send_content_disposition()`**
- **`http_send_file()`**
- **`http_get_request_body()`**
- **`http_get_request_body_stream()`**
- **`http_get_request_headers()`**
- **`http_match_request_header()`**
- **`http_negotiate_content_type()`**
- **`http_negotiate_language()`**

The following functions are also available:

- **`http_get_request_header()`**
- **`http_negotiate_request_header()`**
- **`http_in_request_header()`**
- **`http_build_cache_headers()`**
- **`http_response_code()`**
- **`http_response_code_desc()`**
- **`http_env()`**
- **`mimetype()`**
- **`mime2filetype()`**

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/2b5b7d38d1408fa7abf81c2650415faa6d135c0725b5a25c5e52aefeac03c455?d=identicon)[wells5609](/maintainers/wells5609)

---

Top Contributors

[![wells5609](https://avatars.githubusercontent.com/u/4088444?v=4)](https://github.com/wells5609 "wells5609 (20 commits)")

### Embed Badge

![Health badge](/badges/phpf-httputil/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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