PHPackages                             ndapio/rest-helper - 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. ndapio/rest-helper

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

ndapio/rest-helper
==================

A library that supports communication with REST API

v1.0.3(2y ago)0165MITPHPPHP \*

Since Feb 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ndapio/rest-helper)[ Packagist](https://packagist.org/packages/ndapio/rest-helper)[ Docs](https://ndap.io)[ RSS](/packages/ndapio-rest-helper/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

REST Helper
-----------

[](#rest-helper)

A library that supports communication with REST API. This library can speed up your development with REST API and make it easier to troubleshoot.

- Built-in code base to interact with Guzzle to call REST API.
- Built-in code to support Guzzle request under HTTP/HTTPS proxy.
- Built-in code to get responded cookies.
- Built-in code for common authentication method: username &amp; password or access token
- Built-in code to support form params, JSON data, XML data

Guide and sample
----------------

[](#guide-and-sample)

You can extend the RestApi class to use in your project.

Example:

```

```

> **Note:** There are more samples in **sample** folder

Response
--------

[](#response)

Success response:

```
array(
  "status" => "success",
  "time" => $timestamp,
  "code" => $code,
  "cookies" => $cookies,
  "response" => $response_data_parsed // depend on the data_type input
);

```

Error response:

```
$response = array(
  "status" => "error",
  "time" => $timestamp,
  "code" => $code // 401, 403, 500, ...
);

```

Exception response:

```
array(
  "status" => "exception",
  "code" => 000,
  "time" => $timestamp,
  "response" => array(
      "message" => $exception_message,
      "action" => $action,
      "headers" => $headers,
      "params" => $params,
      "proxy" => $proxy
  )
);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~223 days

Total

4

Last Release

881d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5360e6226815d1aef6e1327f8d4a19d1b34825f3dcce2a53eff7172a41bcc892?d=identicon)[ndapio](/maintainers/ndapio)

---

Top Contributors

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

---

Tags

responserequestrestGuzzle

### Embed Badge

![Health badge](/badges/ndapio-rest-helper/health.svg)

```
[![Health](https://phpackages.com/badges/ndapio-rest-helper/health.svg)](https://phpackages.com/packages/ndapio-rest-helper)
```

###  Alternatives

[aplus/http

Aplus Framework HTTP Library

2311.6M10](/packages/aplus-http)[hamburgscleanest/guzzle-advanced-throttle

A Guzzle middleware that can throttle requests according to (multiple) defined rules. It is also possible to define a caching strategy, e.g. get response from cache when rate limit is exceeded or always get cached value to spare your rate limits.

13033.4k1](/packages/hamburgscleanest-guzzle-advanced-throttle)[hamburgscleanest/laravel-guzzle-throttle

A Laravel wrapper for https://github.com/hamburgscleanest/guzzle-advanced-throttle.

7914.3k](/packages/hamburgscleanest-laravel-guzzle-throttle)[elementaryframework/water-pipe

URL routing framework and requests/responses handler for PHP

254.6k4](/packages/elementaryframework-water-pipe)[behamin/service-proxy

for proxy or sending requests to other services with useful utilities

102.2k](/packages/behamin-service-proxy)

PHPackages © 2026

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