PHPackages                             turkevich/php-restful-client - 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. turkevich/php-restful-client

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

turkevich/php-restful-client
============================

PHP RESTful Client

067PHP

Since Jul 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/turkevich/php-restful-client)[ Packagist](https://packagist.org/packages/turkevich/php-restful-client)[ RSS](/packages/turkevich-php-restful-client/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

RESTful PHP Client
==================

[](#restful-php-client)

Installation
------------

[](#installation)

Installation with Composer

Either run

```
    php composer.phar require --prefer-dist turkevich/rest-client:"dev-master"

```

or add in composer.json

```
    "require": {
            ...
            "turkevich/php-restful-client":"dev-master"
    }

```

Well done!

#### Example call GET

[](#example-call-get)

```
    $result = (new Client())->requestParams(Client::GET, $url, $data)->call();

```

#### Example call CUSTOM with GET data

[](#example-call-custom-with-get-data)

```
    $result = (new Client())->requestParams(Client::CUSTOM, $url, $data)->call();

```

#### Example call CUSTOM with POST data

[](#example-call-custom-with-post-data)

```
    $result = (new Client())->requestParams(Client::CUSTOM, $url, $data)->usePost()->call();

```

#### Example call to url with http auth

[](#example-call-to-url-with-http-auth)

```
    $result = (new Client())->requestParams(Client::POST, $url, $data)->useHttpAuth($username, $password)->call();

```

#### Use response content type

[](#use-response-content-type)

```
    $result = (new Client())->requestParams(Client::PATCH, $url, $data)->useResponseContentType()->call();

```

#### Get result in stdClass

[](#get-result-in-stdclass)

```
    $result = (new Client())->requestParams(Client::PUT, $url, $data)->usePost()->call(true);

```

Enjoy, guys!

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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/9de505bb0da0911ac544bd2c5e092cb9807c05d58c6cc23268e9e6a26ebbec10?d=identicon)[nemed](/maintainers/nemed)

---

Top Contributors

[![nemed](https://avatars.githubusercontent.com/u/5604304?v=4)](https://github.com/nemed "nemed (3 commits)")

### Embed Badge

![Health badge](/badges/turkevich-php-restful-client/health.svg)

```
[![Health](https://phpackages.com/badges/turkevich-php-restful-client/health.svg)](https://phpackages.com/packages/turkevich-php-restful-client)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

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

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/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

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

PHPackages © 2026

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