PHPackages                             paramoredigital/rest-request - 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. paramoredigital/rest-request

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

paramoredigital/rest-request
============================

A simple PHP class for submitting REST requests via cURL.

v1.3(11y ago)023MITPHPPHP &gt;=5.3.0

Since Jan 2Pushed 11y ago1 watchersCompare

[ Source](https://github.com/benwilkins/restrequest)[ Packagist](https://packagist.org/packages/paramoredigital/rest-request)[ RSS](/packages/paramoredigital-rest-request/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

RestRequest
===========

[](#restrequest)

A PHP class for submitting REST requests via cURL.

Configuration
-------------

[](#configuration)

Open the RestRequestConfig.php class and set the $baseUrl parameter to be the base URL of the API. Here, you can also set a default format for the request body (JSON or Form-encoded).

Usage
-----

[](#usage)

Define a new client like this:

`$request = new \ParamoreDigital\RestRequest();`

You can set cURL options like this:

`$request->setHttpOptions(array(CURLOPT_HTTPAUTH => CURLAUTH_BASIC, CURLOPT_USERPWD => 'username:password'));`

You can set parameters like this:

`$request->setParams(array('firstName' => 'Ben', 'lastName' => 'Wilkins'));`

You can manually set an endpoint:

```
$request->setEndPoint('/some/endpoint');
$request->post();

```

Or, you can pass the endpoint straight into the action method:

`$request->post('/some/endpoint');`

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

4105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40f2ddd47d4ab1aa505b768bfc78d5e34f981c0aff4be6f0550c7669f9bf76c6?d=identicon)[paramoredigital](/maintainers/paramoredigital)

---

Tags

restcurl

### Embed Badge

![Health badge](/badges/paramoredigital-rest-request/health.svg)

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

###  Alternatives

[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.2M266](/packages/nategood-httpful)[mashape/unirest-php

Unirest PHP

1.3k9.7M160](/packages/mashape-unirest-php)[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[tcdent/php-restclient

A generic REST API client for PHP

3542.9M28](/packages/tcdent-php-restclient)[vgrem/php-spo

PHP Office 365 library. It allows to performs CRUD operations against Office 365 resources via an REST/OData based API

3741.4M5](/packages/vgrem-php-spo)[apimatic/unirest-php

Unirest PHP

224.7M116](/packages/apimatic-unirest-php)

PHPackages © 2026

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