PHPackages                             psrebniak/guzzle-socket-handler - 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. psrebniak/guzzle-socket-handler

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

psrebniak/guzzle-socket-handler
===============================

Unix socket handler for guzzle 6

0.0.3(9y ago)31411MITPHP

Since Feb 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/psrebniak/guzzle-socket-handler)[ Packagist](https://packagist.org/packages/psrebniak/guzzle-socket-handler)[ Docs](https://github.com/psrebniak/guzzle-socket-handler)[ RSS](/packages/psrebniak-guzzle-socket-handler/feed)WikiDiscussions master Synced 4w ago

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

Guzzle Socket Handler [![Build Status](https://camo.githubusercontent.com/2a2c0b6c669969d2c655d77c41b40ef8a8180db2b4d34569c9ecdab973d50a2a/68747470733a2f2f7472617669732d63692e6f72672f70737265626e69616b2f67757a7a6c652d736f636b65742d68616e646c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/psrebniak/guzzle-socket-handler) [![Code Climate](https://camo.githubusercontent.com/ce277f28662e4ad3ac30e083c4323d66aae64867417b87336f699cf45b83253a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f70737265626e69616b2f67757a7a6c652d736f636b65742d68616e646c65722f6261646765732f6770612e737667)](https://codeclimate.com/github/psrebniak/guzzle-socket-handler)
====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#guzzle-socket-handler---)

**Warning**
**This package is deprecated since cURL 7.40.0.**
Use `curl_setopt` with `CURLOPT_UNIX_SOCKET_PATH` option instead of this package (available in cURL 7.40.0 (PHP 7.0.7))

Unix socket handler for guzzle 6.

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

[](#installation)

`composer require psrebniak/guzzle-socket-handler`

Usage:
------

[](#usage)

```
\GuzzleHttp\Client([
    'handler' => new \psrebniak\GuzzleSocketHandler\SocketHandlerFactory(
        $path
        [, $domain = AF_UNIX
        [, $type = SOCK_STREAM
        [, $protocol = SOL_SOCKET
        ]]]
    )
]);

```

Request options (from `\psrebniak\GuzzleSocketHandler\SocketOptions`)
---------------------------------------------------------------------

[](#request-options-from-psrebniakguzzlesockethandlersocketoptions)

- `SOCKET_TIMEOUT` - alias of `RequestOptions::CONNECT_TIMEOUT`
- `SOCKET_DEBUG` - alias of `RequestOptions::DEBUG`

Done:
-----

[](#done)

- sending JSON (`$options[RequestOptions::JSON]` key)
- sending form params (`$options[RequestOptions::FORM_PARAMS]` key)
- sending multipart (`$options[RequestOptions::multipart]` key)
- tracking redirects (`$options[RequestOptions::ALLOW_REDIRECTS]` key)
- timeout (`$options[RequestOptions::CONNECT_TIMEOUT]` key)
- Http Authentication (`$options[RequestOptions::AUTH]` key)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Every ~33 days

Total

3

Last Release

3355d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13402102?v=4)[Piotr Srebniak](/maintainers/psrebniak)[@psrebniak](https://github.com/psrebniak)

---

Top Contributors

[![psrebniak](https://avatars.githubusercontent.com/u/13402102?v=4)](https://github.com/psrebniak "psrebniak (39 commits)")

---

Tags

GuzzleSocket

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/psrebniak-guzzle-socket-handler/health.svg)

```
[![Health](https://phpackages.com/badges/psrebniak-guzzle-socket-handler/health.svg)](https://phpackages.com/packages/psrebniak-guzzle-socket-handler)
```

###  Alternatives

[guzzlehttp/oauth-subscriber

Guzzle OAuth 1.0 subscriber

24015.1M149](/packages/guzzlehttp-oauth-subscriber)[graham-campbell/guzzle-factory

Provides A Simple Guzzle Factory With Good Defaults

926.8M53](/packages/graham-campbell-guzzle-factory)[bilfeldt/laravel-http-client-logger

A logger for the Laravel HTTP Client

1531.7M3](/packages/bilfeldt-laravel-http-client-logger)[denis660/laravel-centrifugo

Centrifugo broadcaster for laravel

120182.2k](/packages/denis660-laravel-centrifugo)[eljam/guzzle-jwt-middleware

A jwt authentication middleware for guzzle 6

28750.0k3](/packages/eljam-guzzle-jwt-middleware)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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