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 1mo ago

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

[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)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

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

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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