PHP code example of sroze / kubernetes-client
1. Go to this page and download the library: Download sroze/kubernetes-client 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/ */
sroze / kubernetes-client example snippets
$httpClient = new GuzzleHttpClient(
new Client(),
'baseUrl',
'version'
);
$client = new Client(
new HttpAdapter($httpClient, new Serializer())
);
$authenticatedHttpClient = new AuthenticationMiddleware(
$httpClient,
AuthenticationMiddleware::USERNAME_PASSWORD,
'username:password'
);