PHPackages                             devawal/restful-curl - 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. devawal/restful-curl

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

devawal/restful-curl
====================

Restful CURL for PHP application

1.0.1(8y ago)378MITPHPPHP &gt;=5.6.4

Since Jul 20Pushed 8y agoCompare

[ Source](https://github.com/devawal/restful-curl-php)[ Packagist](https://packagist.org/packages/devawal/restful-curl)[ Docs](https://github.com/devawal/restful-curl-php)[ RSS](/packages/devawal-restful-curl/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Restful CURL for PHP application

### Install

[](#install)

It's recommended that you use [Composer](https://getcomposer.org/) to install restful-curl-php

```
$ composer require devawal/restful-curl
```

### Description

[](#description)

```
object|array RestCurl::get(string $url, array $parameters, boolean $json_post, array $header, boolean $object)
```

### Parameters

[](#parameters)

- url: Request URL
- parameters: Request parameters
- json\_post: If the request parameters is json
- header: Request with header
- object: If response needs to be object

### Usage

[](#usage)

```
require 'vendor/autoload.php';

use RestfullCurl\RestCurl;

// Get request
$response = RestCurl::get('https://jsonplaceholder.typicode.com/posts');

// Post request
$response = RestCurl::post('https://jsonplaceholder.typicode.com/posts');

// Post request with parameters and header
$param = array(
                'grant_type'=>'password',
                'client_secret'=>'s5df5d6f6d6f',
              );
$header = array('Accept: application/json', 'Authorization: Bearer df98df665df6d8f8');
$response = RestCurl::post('https://jsonplaceholder.typicode.com/posts', $parameters, true, $header);

// Put request
$response = RestCurl::put('https://jsonplaceholder.typicode.com/posts/1');

// Patch request
$response = RestCurl::patch('https://jsonplaceholder.typicode.com/posts/1');

// Delete request
$response = RestCurl::delete('https://jsonplaceholder.typicode.com/posts/1');
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

3267d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21662021?v=4)[Abdul Awal](/maintainers/devawal)[@devawal](https://github.com/devawal)

---

Top Contributors

[![devawal](https://avatars.githubusercontent.com/u/21662021?v=4)](https://github.com/devawal "devawal (7 commits)")

### Embed Badge

![Health badge](/badges/devawal-restful-curl/health.svg)

```
[![Health](https://phpackages.com/badges/devawal-restful-curl/health.svg)](https://phpackages.com/packages/devawal-restful-curl)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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