PHPackages                             dcarbone/gohttp - 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. dcarbone/gohttp

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

dcarbone/gohttp
===============

Golang-like http class(es) for PHP 8.2+

v1.0.1(1mo ago)0120.8k↓34%2MITPHPPHP ^8.2CI passing

Since Dec 14Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/dcarbone/gohttp)[ Packagist](https://packagist.org/packages/dcarbone/gohttp)[ Docs](https://github.com/dcarbone/gohttp)[ RSS](/packages/dcarbone-gohttp/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (3)Dependencies (1)Versions (9)Used By (2)

dcarbone/gohttp
===============

[](#dcarbonegohttp)

Golang-inspired HTTP helpers for PHP, including:

- HTTP status code constants
- HTTP method constants
- status text / status name helpers
- a small `URL\Values` container for query-style key/value lists

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

[](#requirements)

- PHP 8.2+
- `ext-json`

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

[](#installation)

```
composer require dcarbone/gohttp
```

Usage
-----

[](#usage)

### Status helpers

[](#status-helpers)

```
