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-k8sCheck the Changelog for any breaking changes.
Version Mapping
| Upstream Version | Fork Version | Notes |
|---|---|---|
| 3.x | 3.x+ | Fork maintains compatibility where possible |
| 2.x | Not supported | PHP 8.3+ required |
| 1.x | Not supported | PHP 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::RUNNINGSee Also
- Upstream to Fork Migration - Migrating from upstream
- PHP 8.3+ Modernization - Modern PHP features
- Breaking Changes - All breaking changes
Version upgrade guide for cuppett/php-k8s fork