Skip to content

Version Upgrades

Guide for upgrading between versions of PHP K8s.

Upgrading Within Fork

When upgrading to newer versions of this fork:

bash
composer update renoki-co/php-k8s

Check the Changelog for any breaking changes.

Version Mapping

Upstream VersionFork VersionNotes
3.x3.x+Fork maintains compatibility where possible
2.xNot supportedPHP 8.3+ required
1.xNot supportedPHP 8.3+ required

Breaking Changes

PHP Version Requirements

This fork requires PHP 8.3+. If you need PHP 8.0, 8.1, or 8.2 support, use the upstream package.

Enum Return Values

Methods that previously returned strings now return enums:

php
// Before (strings)
$phase = $pod->getStatus()['phase'];  // "Running"

// After (enums)
use RenokiCo\PhpK8s\Enums\PodPhase;
$phase = $pod->getPodPhase();  // PodPhase::RUNNING

See Also


Version upgrade guide for cuppett/php-k8s fork

Released under the Apache-2.0 License. Originally from renoki-co/php-k8s.