PHPackages                             simonrtc/kubernetes-client-php - 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. simonrtc/kubernetes-client-php

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

simonrtc/kubernetes-client-php
==============================

Kubernetes API client in PHP supporting REST operations and Watches

0.1.1(6y ago)019Apache-2.0PHPPHP &gt;=7.2.0

Since May 22Pushed 6y agoCompare

[ Source](https://github.com/SimonRTC/kubernetes-client-php)[ Packagist](https://packagist.org/packages/simonrtc/kubernetes-client-php)[ Docs](https://github.com/travisghansen/kubernetes-client-php/)[ RSS](/packages/simonrtc-kubernetes-client-php/feed)WikiDiscussions master Synced 1w ago

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

Intro
=====

[](#intro)

No nonsense PHP client for the Kubernetes API. It supports standard `REST` calls along with `watch`es for a continuous feed of data. Because no models are used it's usable with `CRD`s and other functionality/endpoints that may not be built-in.

Example
=======

[](#example)

See [sample.php](sample.php)

Watches
=======

[](#watches)

Watches can (will) stay connected indefinitely, automatically reconnecting after server-side timeout. The client will keep track of the most recent `resourceVersion` processed to automatically start where you left off.

Watch callback closures should have the following signature:

```
$callback = function($event, $watch)..

```

Receiving the watch allows access to the client (and any other details on the watch) and also provides an ability to stop the watch (break the loop) based off of event logic.

- `GET /apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}` (specific resource)
- `GET /apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs` (resource type namespaced)
- `GET /apis/batch/v1beta1/watch/cronjobs` (resource type cluster-wide)
-

Development
===========

[](#development)

Note on `resourceVersion` per the doc:

> When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

Note that it's only changes **after** the version.

TODO
----

[](#todo)

- Introduce threads for callbacks?
- Do codegen on swagger docs to provide and OO interface to requests/responses?

Links
-----

[](#links)

-
-
-
-
-
-
-
-
-
- [kubernetes-client/python#124](https://github.com/kubernetes-client/python/issues/124)

Async
-----

[](#async)

-
-
-

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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 ~264 days

Total

2

Last Release

2288d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/887e44af797b7ca7f773a19d9fcd7c81ba390df639a9b33eb6316f4c87485ea8?d=identicon)[SimonRTC](/maintainers/SimonRTC)

---

Top Contributors

[![travisghansen](https://avatars.githubusercontent.com/u/225404?v=4)](https://github.com/travisghansen "travisghansen (18 commits)")[![SimonRTC](https://avatars.githubusercontent.com/u/42247677?v=4)](https://github.com/SimonRTC "SimonRTC (2 commits)")[![willnewby](https://avatars.githubusercontent.com/u/1313599?v=4)](https://github.com/willnewby "willnewby (2 commits)")

---

Tags

phpapiclientrestkubernetesk8s

### Embed Badge

![Health badge](/badges/simonrtc-kubernetes-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/simonrtc-kubernetes-client-php/health.svg)](https://phpackages.com/packages/simonrtc-kubernetes-client-php)
```

###  Alternatives

[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)
