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 3d 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 49% 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

3221d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1a06346b5b3e1c7453673109f33c6e429ca20598537f17b73296d534e4b488c?d=identicon)[devawal](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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