iqual/rancher-api

There is no license information available for the latest version (dev-8.x-1.x) of this package.

iqual version of Tyldar/rancher-api

dev-8.x-1.x 2020-10-23 09:27 UTC

This package is auto-updated.

Last update: 2024-11-11 12:10:06 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());
}
?>