PHPackages                             alexmasterov/fake-socket - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. alexmasterov/fake-socket

ActiveLibrary[Testing &amp; Quality](/categories/testing)

alexmasterov/fake-socket
========================

A collection of fake sockets and streams for testing

1.0.0(8y ago)06MITPHPPHP 7.1 - 7.3

Since Aug 17Pushed 8y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Fake Socket(s)
--------------

[](#fake-sockets)

A collection of fake sockets and streams for testing.

[![Latest Stable Version](https://camo.githubusercontent.com/15bf84a16f992abcc898f7dbd9da378efe12badb0401d223eeaefeb0c8d03722/68747470733a2f2f706f7365722e707567782e6f72672f616c65786d61737465726f762f66616b652d736f636b65742f762f737461626c65)](https://packagist.org/packages/alexmasterov/fake-socket)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/AlexMasterov/fake-socket/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/618e0e81c9329f7dca1db7e1ba096d8082bd8204953798adf3a80407f4842cd0/68747470733a2f2f7472617669732d63692e6f72672f416c65784d61737465726f762f66616b652d736f636b65742e737667)](https://travis-ci.org/AlexMasterov/fake-socket)[![Code Coverage](https://camo.githubusercontent.com/c53077db580721b0d76df92a3a10bdfa980e24501064492ddc4d7728360f3bae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416c65784d61737465726f762f66616b652d736f636b65742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AlexMasterov/fake-socket/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/39c9a444edbaee3a86328c67e633dfb37500a2a67b2ee2336eece236fe227cc5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416c65784d61737465726f762f66616b652d736f636b65742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AlexMasterov/fake-socket/?branch=master)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

3239d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c3a759788edb549b16d53cc92214268ed89b6dbaa8dfa7025c3b5389bd34edf?d=identicon)[AlexMasterov](/maintainers/AlexMasterov)

---

Top Contributors

[![AlexMasterov](https://avatars.githubusercontent.com/u/700213?v=4)](https://github.com/AlexMasterov "AlexMasterov (10 commits)")

---

Tags

fakesocketstreamtestingstreamtestSocketfake

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexmasterov-fake-socket/health.svg)

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

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k516.1M26.2k](/packages/mockery-mockery)[hamcrest/hamcrest-php

This is the PHP port of Hamcrest Matchers

7.0k503.3M117](/packages/hamcrest-hamcrest-php)[zenstruck/foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.

79513.1M132](/packages/zenstruck-foundry)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

34213.7M442](/packages/brain-monkey)[friends-of-behat/mink-extension

Mink extension for Behat

14035.9M555](/packages/friends-of-behat-mink-extension)[zenstruck/assert

Standalone, lightweight, framework agnostic, test assertion library.

8216.4M10](/packages/zenstruck-assert)

PHPackages © 2026

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