PHPackages                             mega6382/rest-api-wrapper - 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. [API Development](/categories/api)
4. /
5. mega6382/rest-api-wrapper

ActiveLibrary[API Development](/categories/api)

mega6382/rest-api-wrapper
=========================

A Curl Wrapper for RESTful APIs

110PHP

Since Dec 4Pushed 8y ago2 watchersCompare

[ Source](https://github.com/mega6382/restApiWrapper)[ Packagist](https://packagist.org/packages/mega6382/rest-api-wrapper)[ RSS](/packages/mega6382-rest-api-wrapper/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

restApiWrapper
==============

[](#restapiwrapper)

A Curl Wrapper for RESTful APIs

To Install use composer:

```
composer require mega6382/rest-api-wrapper

```

Quick Examples
--------------

[](#quick-examples)

#### Create a restApiWrapper instance

[](#create-a-restapiwrapper-instance)

```
$url = "https://example.com/";
$raw = new raw\restApiWrapper($url);
```

#### Send a POST Request, with Params, Custom Headers and Return type Json Object

[](#send-a-post-request-with-params-custom-headers-and-return-type-json-object)

```
$request = $raw->post(
            'ufkbi1uf', // Endpoint to the API
            [ //POST Params
                'param1' => 'abc',
                'param2' => 'def',
                'param3' => 'ghi',
            ],
            [ //Request Headers
                'Content-Type: application/xml',
                'Connection: Keep-Alive'
            ],
            'json' //Return type
        );
var_dump($request);
```

#### Send a GET Request, without any Params or Custom Headers and return String

[](#send-a-get-request-without-any-params-or-custom-headers-and-return-string)

```
$request = $raw->get('ufkbi1uf', [], [], '');
var_dump($request);
```

#### Send a OPTIONS Request, with Params, but no Custom headers and return will be a string

[](#send-a-options-request-with-params-but-no-custom-headers-and-return-will-be-a-string)

```
$request = $raw->options('ufkbi1uf', ['name' => 'basil'], [], '');
var_dump($request);
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

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://avatars.githubusercontent.com/u/9750259?v=4)[mega6382](/maintainers/mega6382)[@mega6382](https://github.com/mega6382)

---

Top Contributors

[![mega6382](https://avatars.githubusercontent.com/u/9750259?v=4)](https://github.com/mega6382 "mega6382 (10 commits)")

### Embed Badge

![Health badge](/badges/mega6382-rest-api-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/mega6382-rest-api-wrapper/health.svg)](https://phpackages.com/packages/mega6382-rest-api-wrapper)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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