PHPackages                             fain182/diciotto - 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. fain182/diciotto

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

fain182/diciotto
================

A no-nonsense PHP Http client (PSR 18 compatible)

v1.0.4(6y ago)231941[1 issues](https://github.com/fain182/diciotto/issues)[3 PRs](https://github.com/fain182/diciotto/pulls)MITPHPPHP &gt;=7.1.0

Since Dec 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/fain182/diciotto)[ Packagist](https://packagist.org/packages/fain182/diciotto)[ RSS](/packages/fain182-diciotto/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (5)Versions (10)Used By (0)

[![Imgur](https://camo.githubusercontent.com/949fb98871d2118bf8adcaa445c52ca7199eda308de85cb1da68a6f82f7a89db/68747470733a2f2f692e696d6775722e636f6d2f657a5a717278522e706e67)](https://camo.githubusercontent.com/949fb98871d2118bf8adcaa445c52ca7199eda308de85cb1da68a6f82f7a89db/68747470733a2f2f692e696d6775722e636f6d2f657a5a717278522e706e67)

[![Latest Stable Version](https://camo.githubusercontent.com/e46ee1b9df67a1256cd6fafd1f345b02706152939fd2ba06ba067ea76765804f/68747470733a2f2f706f7365722e707567782e6f72672f6661696e3138322f646963696f74746f2f762f737461626c65)](https://packagist.org/packages/fain182/diciotto) [![Build Status](https://camo.githubusercontent.com/dd9b5d37042308f81c931a0f4b3d364cb9e5ce9ba5e7bb43649168049e4e1eb0/68747470733a2f2f7472617669732d63692e6f72672f6661696e3138322f646963696f74746f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fain182/diciotto) [![Coverage Status](https://camo.githubusercontent.com/e704b5a57406e1c11cc251336a2e147ec1e042652c420559c2d9aff5104e3d3c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6661696e3138322f646963696f74746f2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/fain182/diciotto?branch=master)

Diciotto is a no-nonsense PSR-18 compliant HTTP client library for PHP 7.

Principles
----------

[](#principles)

- Documentation should be unnecessary
- Provide sensible defaults
- Explicit is better than implicit
- Prefer a good Developer eXperience over performance
- No surprises

Install
-------

[](#install)

```
    composer require fain182/diciotto

```

How to...
---------

[](#how-to)

### make a GET request

[](#make-a-get-request)

```
    $httpClient = new HttpClient();
    $response = $httpClient->sendRequest( new Request('http://www.google.com') );
```

### make a POST request with body in JSON

[](#make-a-post-request-with-body-in-json)

```
    $httpClient = new HttpClient();
    $request = new JsonRequest('https://httpbin.org/put', 'POST', ['name' => 'value']);
    $response = $httpClient->sendRequest($request);
```

### make a request with a different timeout

[](#make-a-request-with-a-different-timeout)

The default timeout is 15 seconds.

```
    $httpClient = (new HttpClient())->withTimeout(30);
    $response = $httpClient->sendRequest( new Request('http://www.google.com') );
```

### make a request to a server with self-signed or invalid SSL certificate

[](#make-a-request-to-a-server-with-self-signed-or-invalid-ssl-certificate)

```
    $httpClient = (new HttpClient())->withCheckSslCertificates(false);
    $response = $httpClient->sendRequest( new Request('http://www.google.com') );
```

### make a request with a cookie

[](#make-a-request-with-a-cookie)

```
    $httpClient = new HttpClient();
    $request = (new Request('http://www.google.com'))->withAddedCookie('name', 'value');
    $response = $httpClient->sendRequest( $request );
```

Error handling
--------------

[](#error-handling)

Diciotto raise exception if the request is invalid (`RequestException`), or if there are network problems (`NetworkException`). Response with status code 4xx or 5xx are treated the same way as the others, so no exception or error is raised.

About
-----

[](#about)

### Requirements

[](#requirements)

- Diciotto works with PHP 7.1 or above.

### License

[](#license)

Diciotto is licensed under the MIT License - see the `LICENSE` file for details

### Acknowledgements

[](#acknowledgements)

Diciotto is built on top of [nyholm/psr7](https://github.com/Nyholm/psr7) that provides PSR-7 and PSR-17 implementation.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% 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 ~47 days

Total

5

Last Release

2505d ago

### Community

Maintainers

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

---

Top Contributors

[![fain182](https://avatars.githubusercontent.com/u/5879?v=4)](https://github.com/fain182 "fain182 (36 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

curldxhttp-clientphppsr-18

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fain182-diciotto/health.svg)

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

###  Alternatives

[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[php-http/socket-client

Socket client for PHP-HTTP

812.5M45](/packages/php-http-socket-client)[elastic/transport

HTTP transport PHP library for Elastic products

1920.6M7](/packages/elastic-transport)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[juststeveking/php-sdk

A framework for building SDKs in PHP.

21872.0k2](/packages/juststeveking-php-sdk)

PHPackages © 2026

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