PHPackages                             dormilich/http-client-bundle - 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. dormilich/http-client-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

dormilich/http-client-bundle
============================

Symfony 5 bundle for dormilich/http-client.

03PHP

Since Aug 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Dormilich/http-client-bundle)[ Packagist](https://packagist.org/packages/dormilich/http-client-bundle)[ RSS](/packages/dormilich-http-client-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

http-client bundle
==================

[](#http-client-bundle)

Symfony 5 bundle for `dormilich/http-client`.

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

[](#installation)

This bundle requires Symfony 5 as well as a [PSR-17](https://www.php-fig.org/psr/psr-17/) and [PSR-18](https://www.php-fig.org/psr/psr-18/) implementation.

- [PSR-17 libraries](https://packagist.org/providers/psr/http-factory-implementation)
- [PSR-18 libraries](https://packagist.org/providers/psr/http-client-implementation)

However, it makes sense to use `symfony/http-client` as PSR-18 implementation in a Symfony project.

You can then install this bundle via composer:

```
composer require dormilich/http-client-bundle

```

Configuration
-------------

[](#configuration)

The configuration allows the predefined JSON- and URL-transformers to be set up. By default, the JSON-transformers are set up without options and the URL-transformers with the `php` strategy.

The JSON-encoder/decoder accepts `JSON_*` constants as constructor argument. They can be added using the `encoder.json`/`decoder.json` key.

The URL-encoder/decoder can be configured with two encoding strategies, `php` (native PHP parsing strategy, used for populating `$_GET` and `$_POST`) and `nvp` (a strategy that uses `name=value`pairs) using the `encoder.url`/`decoder.url` key.

Example:

```
# config/packages/dormilich_http_client.yaml
dormilich_http_client:
  encoder:
    url: php
  decoder:
    json: !php/const JSON_OBJECT_AS_ARRAY
```

### Tagging

[](#tagging)

The bundle allows the HTTP client to be configured in `services.yaml` using service tags.

- `dormilich_http_client.client_decoder`: Add tagged decoder to the client
- `dormilich_http_client.client_encoder`: Add tagged encoder to the client
- `dormilich_http_client.client_transformer`: Add tagged data transformer/encoder/decoder to the client

Examples:

```
# add error decoder to every client instance
Dormilich\HttpClient\Decoder\ErrorDecoder:
  tags:
    - dormilich_http_client.client_decoder
```

```
# encode JSON objects
Dormilich\HttpClient\Transformer\JsonEncoder:
    tags:
        - dormilich_http_client.client_transformer
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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://avatars.githubusercontent.com/u/392135?v=4)[Bertold von Dormilich](/maintainers/Dormilich)[@Dormilich](https://github.com/Dormilich)

---

Top Contributors

[![Dormilich](https://avatars.githubusercontent.com/u/392135?v=4)](https://github.com/Dormilich "Dormilich (15 commits)")

---

Tags

composersymfony-bundle

### Embed Badge

![Health badge](/badges/dormilich-http-client-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dormilich-http-client-bundle/health.svg)](https://phpackages.com/packages/dormilich-http-client-bundle)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M317](/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)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

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

78126.4M414](/packages/react-http)

PHPackages © 2026

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