PHPackages                             k8s/ws-swoole - 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. k8s/ws-swoole

ActiveLibrary

k8s/ws-swoole
=============

Swoole based websocket adapter for k8s/client

1.1.1(2y ago)1212MITPHPPHP &gt;=7.2

Since Feb 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/k8s-client/ws-swoole)[ Packagist](https://packagist.org/packages/k8s/ws-swoole)[ RSS](/packages/k8s-ws-swoole/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (6)Versions (4)Used By (0)

k8s-ws-swoole
=============

[](#k8s-ws-swoole)

This library provides a Swoole based websocket adapter for the `k8s/client` library.

General Use with the K8s library / Configuration Options
--------------------------------------------------------

[](#general-use-with-the-k8s-library--configuration-options)

1. Install the library:

`composer require k8s/ws-swoole`

**Note**: If you don't need to change any TLS settings, this is all that is needed most likely.

2. If you need to configure any options, then you can use the below method to set those and use the websocket with them:

```
use K8s\Client\K8s;
use K8s\Client\Options;
use K8s\WsSwoole\CoroutineAdapter;

$options = [
    # May need to toggle SSL verification settings if using a self-signed cert, like for Minikube
    'ssl_allow_self_signed' => true,
    'ssl_verify_peer' => false,
    'verify_peer' => false,
    'verify_peer_name' => false,
    # To use certificate based auth, you may need to pass in the cert locations.
    'ssl_cert_file' => '/.minikube/profiles/minikube/client.crt',
    'ssl_key_file' => '//.minikube/profiles/minikube/client.key',
];

$websocket = new CoroutineAdapter($options);

# You can then pass the new websocket adapter in the options to be used
$options = new Options('k8s.endpoint.local');
$options->setWebsocketClient($websocket);

# Construct K8s to use the new websocket in the options
$k8s = new K8s($options);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~472 days

Total

3

Last Release

951d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/388229?v=4)[Chad Sikorra](/maintainers/ChadSikorra)[@ChadSikorra](https://github.com/ChadSikorra)

---

Top Contributors

[![ChadSikorra](https://avatars.githubusercontent.com/u/388229?v=4)](https://github.com/ChadSikorra "ChadSikorra (7 commits)")[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/k8s-ws-swoole/health.svg)

```
[![Health](https://phpackages.com/badges/k8s-ws-swoole/health.svg)](https://phpackages.com/packages/k8s-ws-swoole)
```

###  Alternatives

[k8s/client

A Kubernetes client for PHP.

221.9k](/packages/k8s-client)

PHPackages © 2026

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