PHPackages                             plesk/socket-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. plesk/socket-client

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

plesk/socket-client
===================

Socket client for PHP-HTTP (Plesk)

2.1.1-patch3(1y ago)053.1k↓23.3%4[1 PRs](https://github.com/plesk/socket-client/pulls)MITPHPPHP ^7.2 || ^8.0

Since Jul 7Pushed 1y agoCompare

[ Source](https://github.com/plesk/socket-client)[ Packagist](https://packagist.org/packages/plesk/socket-client)[ RSS](/packages/plesk-socket-client/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (4)Used By (0)

Socket Client for PHP HTTP
==========================

[](#socket-client-for-php-http)

[![Latest Version](https://camo.githubusercontent.com/1d6d6f85992ddb2ec6e89696a3115fadb483fa9d3d7ee0f4f64543d06da70a0c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7068702d687474702f736f636b65742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-http/socket-client/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://github.com/php-http/socket-client/actions/workflows/ci.yml/badge.svg?branch=2.x)](https://github.com/php-http/socket-client/actions/workflows/ci.yml)[![Code Coverage](https://camo.githubusercontent.com/deb07c560b8cf2f73be11854ee1228c4251d1effd963966fe199db6ca3034f9d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7068702d687474702f736f636b65742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-http/socket-client)[![Quality Score](https://camo.githubusercontent.com/8d1fe8dec79f390b10a0dd01db86f3b8735e3275d5062462a2aa520439c199d9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068702d687474702f736f636b65742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-http/socket-client)[![Total Downloads](https://camo.githubusercontent.com/cd30e1d6cad8498e821ad05dcc723c33339b641a05f2b865212d72dcc62c76b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d687474702f736f636b65742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/php-http/socket-client)

The socket client use the stream extension from PHP, which is integrated into the core.

Features
--------

[](#features)

- TCP Socket Domain (tcp://hostname:port)
- UNIX Socket Domain (unix:///path/to/socket.sock)
- TLS / SSL Encyrption
- Client Certificate (only for php &gt; 5.6)

Installation and Usage
----------------------

[](#installation-and-usage)

[Read the documentation at http://docs.php-http.org/en/latest/clients/socket-client.html](http://docs.php-http.org/en/latest/clients/socket-client.html)

Testing
-------

[](#testing)

First launch the http server:

```
$ ./vendor/bin/http_test_server > /dev/null 2>&1 &
```

Then generate ssh certificates:

```
$ composer gen-ssl
```

Note: If you are running this on macOS and get the following error: "Error opening CA Private Key privkey.pem", check [this](ssl-macOS.md) file.

Now run the test suite:

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).

Security
--------

[](#security)

If you discover any security related issues, please contact us at .

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance42

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.9% 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 ~190 days

Total

4

Last Release

473d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5928ecaf5890c963894d11983fbbf88b64ac619c641efa30d5e1140070f4ec54?d=identicon)[xgin](/maintainers/xgin)

---

Top Contributors

[![joelwurtz](https://avatars.githubusercontent.com/u/90466?v=4)](https://github.com/joelwurtz "joelwurtz (66 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (19 commits)")[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (10 commits)")[![ovaunit](https://avatars.githubusercontent.com/u/8519980?v=4)](https://github.com/ovaunit "ovaunit (3 commits)")[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (3 commits)")[![flavioheleno](https://avatars.githubusercontent.com/u/471860?v=4)](https://github.com/flavioheleno "flavioheleno (2 commits)")[![mrmiagi](https://avatars.githubusercontent.com/u/1648085?v=4)](https://github.com/mrmiagi "mrmiagi (1 commits)")[![qkdreyer](https://avatars.githubusercontent.com/u/717869?v=4)](https://github.com/qkdreyer "qkdreyer (1 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (1 commits)")[![ajgarlag](https://avatars.githubusercontent.com/u/388184?v=4)](https://github.com/ajgarlag "ajgarlag (1 commits)")[![yeclense](https://avatars.githubusercontent.com/u/3920379?v=4)](https://github.com/yeclense "yeclense (1 commits)")[![bastnic](https://avatars.githubusercontent.com/u/84887?v=4)](https://github.com/bastnic "bastnic (1 commits)")[![driehle](https://avatars.githubusercontent.com/u/1586788?v=4)](https://github.com/driehle "driehle (1 commits)")[![ferrumfist](https://avatars.githubusercontent.com/u/14904438?v=4)](https://github.com/ferrumfist "ferrumfist (1 commits)")[![frenchcomp](https://avatars.githubusercontent.com/u/1397905?v=4)](https://github.com/frenchcomp "frenchcomp (1 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/plesk-socket-client/health.svg)

```
[![Health](https://phpackages.com/badges/plesk-socket-client/health.svg)](https://phpackages.com/packages/plesk-socket-client)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[php-http/client-common

Common HTTP Client implementations and tools for HTTPlug

1.1k225.5M571](/packages/php-http-client-common)[kriswallsmith/buzz

Lightweight HTTP client

2.0k31.3M443](/packages/kriswallsmith-buzz)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[php-http/httplug-bundle

Symfony integration for HTTPlug

38921.0M54](/packages/php-http-httplug-bundle)

PHPackages © 2026

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