iqual / rancher-api
iqual version of Tyldar/rancher-api
Installs: 888
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 4
pkg:composer/iqual/rancher-api
Requires
- guzzlehttp/guzzle: ^6.3
- vlucas/phpdotenv: ^2.4
Requires (Dev)
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2025-10-02 12:27:42 UTC
README
Bundle of PHP classes to interact with Rancher (Container Management System) API.
Installation
RancherAPI uses compose to make installation easier.
Install via composer
composer require tyldar/rancher-api
Usage
RancherAPI is incredibly intuitive to use.
Introduction
<?php require 'vendor/autoload.php'; use Tyldar\Rancher\Rancher; try { $rancher = new Rancher("RANCHERHOSTURL", "RANCHERACCESSKEY", "RANCHERSECRETKEY", "PROJECT"); echo json_encode($rancher->containers()->getAll()); } catch(Exception $e) { var_dump($e->getResponse()->getBody()->getContents()); } ?>