PHPackages                             firehed/kube-sdk - 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. firehed/kube-sdk

ActiveLibrary

firehed/kube-sdk
================

SDK for interacting with the Kubernetes API

1.1.0(7y ago)117MITPHPPHP ^7.1

Since Oct 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Firehed/php-kubesdk)[ Packagist](https://packagist.org/packages/firehed/kube-sdk)[ RSS](/packages/firehed-kube-sdk/feed)WikiDiscussions master Synced today

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

Kubernetes SDK
==============

[](#kubernetes-sdk)

[![Build Status](https://camo.githubusercontent.com/4d1a3b580fb90b4ab35241bb7621b3b5fdd178d5158f0fa0a7540413cc4a9741/68747470733a2f2f7472617669732d63692e6f72672f466972656865642f7068702d6b75626573646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Firehed/php-kubesdk)[![codecov](https://camo.githubusercontent.com/7ddccbeb5575d1163b9ef4f88e6fa19739b5415fd742e07ea74b15b9de0d4b6b/68747470733a2f2f636f6465636f762e696f2f67682f466972656865642f7068702d6b75626573646b2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Firehed/php-kubesdk)

A simple API wrapper for interacting with the Kubernetes API

Usage
-----

[](#usage)

There are two classes to interface with the Kubernetes API:

- `Kubernetes\LocalProxy` is for use on your local machine, or anywhere else the `kubectl proxy` command may be running.
- `Kubernetes\ServiceAccount` is for use inside of Kubernetes. It will auto-detect the auth information automatically configured in all Pods. This will respect the `serviceAccountName` configuration of the pod.

You will probably want to determine which one to load approximately like this:

```
// ... PSR-11 container definition
    Kubernetes\Api::class => function () {
        if (getenv('KUBERNETES_SERVICE_HOST')) {
            return new Kubernetes\ServiceAccount();
        } else {
            return new Kubernetes\LocalProxy('http://localhost:8001');
        }
    },
```

The SDK methods are defined in the [`Kubernetes\Api`](src/Api.php) interface.

Network timeouts default to 500ms on connect and 3000ms for the request.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

2701d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/354842?v=4)[Eric Stern](/maintainers/Firehed)[@Firehed](https://github.com/Firehed)

---

Top Contributors

[![Firehed](https://avatars.githubusercontent.com/u/354842?v=4)](https://github.com/Firehed "Firehed (5 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/firehed-kube-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/firehed-kube-sdk/health.svg)](https://phpackages.com/packages/firehed-kube-sdk)
```

PHPackages © 2026

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