PHPackages                             k8s/ws-ratchet - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. k8s/ws-ratchet

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

k8s/ws-ratchet
==============

Ratchet based websocket adapter for k8s/client

1.1.1(4y ago)12.3k1MITPHPPHP &gt;=7.2

Since Feb 1Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (6)Used By (1)

k8s-ws-ratchet
==============

[](#k8s-ws-ratchet)

This library provides a Ratchet 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-ratchet`

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

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\WsRatchet\RatchetWebsocketAdapter;

$options = [
    # Set a timeout for the websocket connection
    'timeout' => 15,
    # Can toggle these to false if you are using a self-signed cert
    'tls' => [
        'verify_peer' => true,
        'verify_peer_name' => true,
    ],
];

$websocket = new RatchetWebsocketAdapter($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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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 ~78 days

Total

5

Last Release

1619d 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 (15 commits)")

---

Tags

kubernetesk8s

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[renoki-co/laravel-php-k8s

Just a simple port of renoki-co/php-k8s for easier access in Laravel.

88218.2k](/packages/renoki-co-laravel-php-k8s)[renoki-co/php-k8s

Control your Kubernetes clusters with this PHP-based Kubernetes client. It supports any form of authentication, the exec API, and it has an easy implementation for CRDs.

321669.7k2](/packages/renoki-co-php-k8s)[k8s/client

A Kubernetes client for PHP.

221.9k](/packages/k8s-client)[travisghansen/kubernetes-client-php

Kubernetes API client in PHP supporting REST operations and Watches

3726.0k3](/packages/travisghansen-kubernetes-client-php)

PHPackages © 2026

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