PHPackages                             rogerthomas84/ohhttp - 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. rogerthomas84/ohhttp

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

rogerthomas84/ohhttp
====================

OhHttp is a HTTP Request and Response library for PHP

1.0.1(10y ago)210.2k2MITPHPPHP &gt;=5.3.7

Since Dec 22Pushed 10y agoCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

OhHttp
======

[](#ohhttp)

OhHttp is a HTTP Request and Response library for PHP

[![Latest Stable Version](https://camo.githubusercontent.com/150edba1210fa5389348b62484478a6dc1bdc03a7ea013c2635eea2e4f9d1743/68747470733a2f2f706f7365722e707567782e6f72672f726f67657274686f6d617338342f6f68687474702f762f737461626c652e737667)](https://packagist.org/packages/rogerthomas84/ohhttp)[![Total Downloads](https://camo.githubusercontent.com/597ca8fa1b5c94b79fe335ed980daace05df8c77b2461d20fbf59fe239b56910/68747470733a2f2f706f7365722e707567782e6f72672f726f67657274686f6d617338342f6f68687474702f646f776e6c6f6164732e737667)](https://packagist.org/packages/rogerthomas84/ohhttp)[![Latest Unstable Version](https://camo.githubusercontent.com/5a9cdad9aad5167fd3592c8109381c9dade016ea1b1da3beee29c74f59783272/68747470733a2f2f706f7365722e707567782e6f72672f726f67657274686f6d617338342f6f68687474702f762f756e737461626c652e737667)](https://packagist.org/packages/rogerthomas84/ohhttp)[![License](https://camo.githubusercontent.com/ad4455118d3b734504a25f61c0b6d18542c2c1736f426371b41d4d09bd8594ca/68747470733a2f2f706f7365722e707567782e6f72672f726f67657274686f6d617338342f6f68687474702f6c6963656e73652e737667)](https://packagist.org/packages/rogerthomas84/ohhttp)[![Build Status](https://camo.githubusercontent.com/6afde2be5ae14157e790d84326fdc86b58b81174ee0f00aaee5c86cc9abd3e22/68747470733a2f2f7472617669732d63692e6f72672f726f67657274686f6d617338342f6f68687474702e706e67)](http://travis-ci.org/rogerthomas84/ohhttp)

Using Composer
--------------

[](#using-composer)

To use OhHttp with Composer, add the dependency (and version constraint) to your require block inside your `composer.json` file.

```
{
    "require": {
        "rogerthomas84/ohhttp": "1.0.*"
    }
}
```

Quick Start
-----------

[](#quick-start)

You can use the `\OhHttp\Request` and `\OhHttp\Response` to provide a simplified HTTP Request and Response, but moving towards a more OO approach.

Request
-------

[](#request)

```
$request = new \OhHttp\Request();
if ($request->isGet()) {
    $userId = $request->getParam('id', null);
    // do something
} elseif ($request->isPost()) {
    $userId = $request->getParam('id', null);
    // do something
}
```

Response
--------

[](#response)

```
$response = new \OhHttp\Response();
$response->setHeader('Content-Type', 'application/json');
$response->setBody('{"foo":"bar"}');
$response->send();
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~238 days

Total

2

Last Release

3918d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5de4b9a90eadf6b595e1b5efc802683f2358da5661c616820b90c922f8aa8e05?d=identicon)[rogerthomas84](/maintainers/rogerthomas84)

---

Top Contributors

[![rogerthomas84](https://avatars.githubusercontent.com/u/350232?v=4)](https://github.com/rogerthomas84 "rogerthomas84 (3 commits)")

---

Tags

http requestphp-httphttp-responseohhttp

### Embed Badge

![Health badge](/badges/rogerthomas84-ohhttp/health.svg)

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

###  Alternatives

[php-http/httplug-bundle

Symfony integration for HTTPlug

38921.0M54](/packages/php-http-httplug-bundle)[aura/http

The Aura HTTP package provides objects to build and send HTTP responses from the server to the client.

7338.8k4](/packages/aura-http)[popphp/pop-http

Pop Http Component for Pop PHP Framework

1018.5k13](/packages/popphp-pop-http)[yzh52521/easyhttp

EasyHttp 是一个轻量级、语义化、对IDE友好的HTTP客户端，支持常见的HTTP请求、异步请求和并发请求，让你可以快速地使用 HTTP 请求与其他 Web 应用进行通信。

429.3k3](/packages/yzh52521-easyhttp)[shieldon/psr-http

HTTP implementation for PSR standard.

1826.3k4](/packages/shieldon-psr-http)

PHPackages © 2026

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