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 3d 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 14% 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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

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

78126.4M414](/packages/react-http)

PHPackages © 2026

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