PHPackages                             sroze/kubernetes-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sroze/kubernetes-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sroze/kubernetes-client
=======================

1.12.0(8y ago)123.1k

Since Oct 8Compare

[ Source](https://github.com/sroze/kubernetes-client)[ Packagist](https://packagist.org/packages/sroze/kubernetes-client)[ RSS](/packages/sroze-kubernetes-client/feed)WikiDiscussions Synced 2w ago

READMEChangelog (10)Dependencies (7)Versions (28)Used By (0)

Kubernetes client
=================

[](#kubernetes-client)

[![Build Status](https://camo.githubusercontent.com/ff9b1c0fc6d8e085aaf628b16d123023f18d4fddebf05ecfb4569829d22912d3/68747470733a2f2f7472617669732d63692e6f72672f73726f7a652f6b756265726e657465732d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sroze/kubernetes-client)

A library that provide a client for the Kubernetes API client.

Getting started
---------------

[](#getting-started)

To create an anonymous client, you can:

```
$httpClient = new GuzzleHttpClient(
    new Client(),
    'baseUrl',
    'version'
);

$client = new Client(
    new HttpAdapter($httpClient, new Serializer())
);
```

To had user authentication, you can decorate the http client:

```
$authenticatedHttpClient = new AuthenticationMiddleware(
    $httpClient,
    AuthenticationMiddleware::USERNAME_PASSWORD,
    'username:password'
);
```

Serializer
----------

[](#serializer)

If you use JMS serializer, the serializer adapter already exists in the `src/Serializer` directory. There is also an handler for the `RollingUpdateDeployment` object type used by Kubernetes that uses `integerOrString` types.

Development
-----------

[](#development)

Install application dependencies:

```
composer install

```

Tests
-----

[](#tests)

Tests are specifications written with [PhpSpec](http://github.com/phpspec/phpspec).

```
./bin/phpspec run

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 89.3% 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 ~32 days

Recently: every ~44 days

Total

27

Last Release

3115d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58b8aaf662150e054108b611b620d1cf8c1cb91e00f76d3dfcd2d7a69a10991c?d=identicon)[sroze](/maintainers/sroze)

---

Top Contributors

[![sroze](https://avatars.githubusercontent.com/u/804625?v=4)](https://github.com/sroze "sroze (134 commits)")[![Sam-Burns](https://avatars.githubusercontent.com/u/6594039?v=4)](https://github.com/Sam-Burns "Sam-Burns (9 commits)")[![technodelight](https://avatars.githubusercontent.com/u/1817035?v=4)](https://github.com/technodelight "technodelight (4 commits)")[![elvetemedve](https://avatars.githubusercontent.com/u/596431?v=4)](https://github.com/elvetemedve "elvetemedve (2 commits)")[![richardmiller-zz](https://avatars.githubusercontent.com/u/783827?v=4)](https://github.com/richardmiller-zz "richardmiller-zz (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)[azuracast/azuracast

The AzuraCast self-hosted web radio station management suite.

4.0k27.9k](/packages/azuracast-azuracast)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M231](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6943.5M448](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M668](/packages/shopware-core)

PHPackages © 2026

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