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

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

kfosoft/php-restful-client
==========================

PHP RESTful Client

1.0(10y ago)0362PHPPHP &gt;=5.4.0

Since Sep 25Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

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

[](#php-restful-client)

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

[](#installation)

Installation with Composer

Either run

```
    php composer.phar require --prefer-dist kfosoft/rest-client:"*"

```

or add in composer.json

```
    "require": {
            ...
            "kfosoft/php-restful-client":"*"
    }

```

Well done!

#### Example call GET

[](#example-call-get)

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

```

#### Example call CUSTOM with GET data

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

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

```

#### Example call CUSTOM with POST data

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

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

```

#### Example call to url with http auth

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

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

```

#### Use response content type

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

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

```

#### Get result in stdClass

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

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

```

Enjoy, guys!

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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

3888d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3544388a2defce630d5b16fe9c38c91057278147939e8fac9a419386c3984a98?d=identicon)[kfosoft](/maintainers/kfosoft)

---

Top Contributors

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

---

Tags

phprestrestfulrest-clientphp-rest-clientphp restphp restfulphp restful clientrestful client

### Embed Badge

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

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

###  Alternatives

[arhitector/yandex

PHP SDK для работы с некоторыми сервисами яндекса (Яндекс.Диск, Yandex.Disk)

13082.9k5](/packages/arhitector-yandex)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)

PHPackages © 2026

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