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 3d 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 19% 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://www.gravatar.com/avatar/a3942103d260bed6ebe0cead790fd728c0c815271dfb4ab06ff4e8c9db10af37?d=identicon)[mega6382](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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