PHP code example of cobak78 / rancher-api
1. Go to this page and download the library: Download cobak78/rancher-api 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/ */
cobak78 / rancher-api example snippets
define('DOCUMENT_ROOT', dirname(__FILE__));
ients\HttpClient;
use Cobak78\RancherApi\Clients\WSClient;
use Cobak78\RancherApi\RancherApi;
$dotenv = new Dotenv(DOCUMENT_ROOT);
$dotenv->load();
$client = new HttpClient();
$wsClient = new WSClient();
$rancherApi = new RancherApi($client, $wsClient, $argv, $argc);
$rancherApi->execute();
$rancherApi->execute(true);
bash
php execute.php project-api fpm bin/console c:c