PHPackages                             mykehowells/httpeep - 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. mykehowells/httpeep

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

mykehowells/httpeep
===================

PHP HTTP client for API endpoint/resource requests

1.0.0(5y ago)07GPLPHPPHP &gt;=5.4.0

Since Jul 21Pushed 5y ago1 watchersCompare

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

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

HttPeep
=======

[](#httpeep)

PHP HTTP client for API endpoint/resource requests

### Setup

[](#setup)

#### Composer

[](#composer)

If you use composer, enter the following command into terminal:

`composer require mykehowells/httpeep`

Then add `require 'vendor/autoloader.php'` to your PHP project.

#### Non-Composer

[](#non-composer)

To start using HttPeep, clone this repo into your project; Using SPL autoloader, enter the following code into your project to load the required files.

```
set_include_path( CLASSES_DIR );
spl_autoload_extensions('.class.php');
spl_autoload_register();
```

This will include the files as they are called within your project and within he HttPeep files.

### Usage

[](#usage)

A simple use case of HttPeep, is below;

```
$client = new \HttPeep\Client( 'https://api.example.com' );

$response = $client->post( "/user/auth", [
     'token' => $_SESSION['api']['token'],
     'username' => $_POST['username'],
     'password' => md5( $_POST['password'] )
] );

var_export( $response );
```

You can also use the `\HttPeep\Client->json()` method to return JSON taken from the body.

```
$client = new \HttPeep\Client( 'https://api.example.com' );

$response = $client->post( "/user/auth", [
     'token' => $_SESSION['api']['token'],
     'username' => $_POST['username'],
     'password' => md5( $_POST['password'] )
] )->json();

var_export( $response );
```

### Methods

[](#methods)

Methods available from HttPeep are:

- GET
- POST
- DELETE
- PUT

### Client Config

[](#client-config)

When instantiating `\HttPeep\Client()`, you can pass an array of config variables for cURL; for example:

```
$client = new \HttPeep\Client( 'https://api.example.com', [
    'curl' => [
        'followlocation' => true, // CURLOPT_FOLLOWLOCATION - follow any Location: header sent as part of the HTTP header
        'maxredirs' => 10 // CURLOPT_MAXREDIRS - Maximum number of HTTP redirections to follow
    ]
] );
```

Default CURLOPTS that are set within the Client are:

OptionValueCURLOPT\_RETURNTRANSFERtrueCURLOPT\_SSL\_VERIFYPEERfalseCURLOPT\_SSL\_VERIFYHOSTfalseCURLOPT\_VERBOSEfalse

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2119d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/494de8188ad97403b72e40e385235a74ef6331aa2710b3727193f646189af9fc?d=identicon)[mykemeynell](/maintainers/mykemeynell)

---

Top Contributors

[![mykemeynell](https://avatars.githubusercontent.com/u/1590190?v=4)](https://github.com/mykemeynell "mykemeynell (1 commits)")

---

Tags

httpresponserequestphpapiclientresthttpeep

### Embed Badge

![Health badge](/badges/mykehowells-httpeep/health.svg)

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

###  Alternatives

[aplus/http-client

Aplus Framework HTTP Client Library

2161.6M1](/packages/aplus-http-client)[elementaryframework/water-pipe

URL routing framework and requests/responses handler for PHP

254.6k4](/packages/elementaryframework-water-pipe)

PHPackages © 2026

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