PHP code example of firehed / kube-sdk
1. Go to this page and download the library: Download firehed/kube-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
firehed / kube-sdk example snippets
// ... 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');
}
},