PHPackages                             simplecomplex/restmini - 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. simplecomplex/restmini

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

simplecomplex/restmini
======================

Small powerful REST client.

1.2(6y ago)02051MITPHPPHP &gt;=7.0

Since Jul 12Pushed 6y ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (12)Used By (1)

RestMini Client
---------------

[](#restmini-client)

### Simple HTTP client

[](#simple-http-client)

with chainable methods.
Highly configurable.
Extensive error handling and logging.
[cURL](https://curl.haxx.se)-based.

### Example

[](#example)

```
use SimpleComplex\RestMini\Client;

// Get JSON-decoded response data.
$data = Client::make('http://server', '/endpoint', [
    'headers' => [
        'X-Whatever' => 'Hello',
    ],
    'json_parse_assoc' => true,
])->get(
    [
        'some-path-arg' => 'foo',
    ],
    [
        'some-query-arg' => 'bar',
    ]
)->result();

// Check status first.
$response = Client::make('http://server', '/endpoint')->get();
if ($response->status() == 200) {
    $data = $response->result();
}
else {
    $info = $response->info();
    $container = \SimpleComplex\Utils\Dependency::container();
    $container->get('logger')->warning("Darned:\n" . json_encode($info, JSON_PRETTY_PRINT));
}

// Get raw response data.
$raw = Client::make('http://server', '/endpoint')->get()->raw():
```

### Client options

[](#client-options)

- (obj) **logger**: PSR-3 logger; otherwise checks in Utils\\Dependency.
- (bool) **parse\_json\_assoc**: parse objects to associative arrays;
    ignored if using the parser() method
- (str) **accept**
- (str) **accept\_charset**
- (str) **content\_type**: of request body; default application/json; supported:
    ''|application/json\[; charset=some-charset\]|application/x-www-form-urlencoded
- (int) **connect\_timeout**: default 5 (seconds);
    class constant CONNECT\_TIMEOUT\_DEFAULT
- (int) **request\_timeout**
- (bool) **ssl\_verify**: default true;
    class constant SSL\_VERIFY\_DEFAULT
- (str) **ssl\_cacert\_file**: use custom CA cert file instead the common file
- (bool) **status\_vain\_result\_void**: ~ result() returns empty string if
    status &gt;=300; suppress error messages etc. received in response body
- (bool) **ignore\_status**: ~ don't trust response status code;
    like 200 might actually be 404
- (bool) **ignore\_content\_type**: ~ don't trust response content type;
    HTML might actually be JSON, and vice versa
- (str) **auth**: 'basic' or 'ntlm'; defaults to 'basic' if option *user*
- (str) **user**: for auth
- (str) **pass**: for auth
- (arr) **headers**: request headers
- (bool) **get\_headers**: get response headers
- (int) **log\_severity**: severity level when logging any error type except
    logical error and (runtime) configuration error; default warning;
    class constant LOG\_SEVERITY\_DEFAULT
- (string) **log\_type**: use that log type when logging; default 'restmini\_client';
    class constant LOG\_TYPE\_DEFAULT
- (bool) **service\_response\_info\_wrapper**: tell service to wrap response
    in object listing service response properties
- (bool) **record\_args**: make path+query+body args available after request

### Requirements

[](#requirements)

- PHP &gt;=7.0
- PHP cURL extension
- [PSR-3 Log](https://github.com/php-fig/log)
- [SimpleComplex Inspect](https://github.com/simplecomplex/inspect)
- [SimpleComplex Utils](https://github.com/simplecomplex/php-utils)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.4% 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

Every ~135 days

Recently: every ~212 days

Total

9

Last Release

2190d ago

Major Versions

0.9 → 1.02017-09-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc4dc35e0d2b8e4619ae2fe2d083cb3c64b09127ecb318c3909025fc0aae1e7f?d=identicon)[jacobfriis](/maintainers/jacobfriis)

---

Top Contributors

[![jacobfriis](https://avatars.githubusercontent.com/u/3807905?v=4)](https://github.com/jacobfriis "jacobfriis (61 commits)")[![simplecomplex](https://avatars.githubusercontent.com/u/10960036?v=4)](https://github.com/simplecomplex "simplecomplex (1 commits)")

---

Tags

chainable-methodsphpphp7psrrestrest-clienthttpphprest

### Embed Badge

![Health badge](/badges/simplecomplex-restmini/health.svg)

```
[![Health](https://phpackages.com/badges/simplecomplex-restmini/health.svg)](https://phpackages.com/packages/simplecomplex-restmini)
```

###  Alternatives

[symfony/http-client

Provides powerful methods to fetch HTTP resources synchronously or asynchronously

2.0k338.8M4.6k](/packages/symfony-http-client)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M198](/packages/api-platform-metadata)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

10239.4k5](/packages/bitrix24-b24phpsdk)[aphiria/aphiria

The Aphiria framework

1428.0k2](/packages/aphiria-aphiria)[mimmi20/browser-detector

Library to detect Browsers and Devices

48156.1k4](/packages/mimmi20-browser-detector)

PHPackages © 2026

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