Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
/ rancher-api Public archive

Up-to-date Rancher API PHP implementation

Notifications You must be signed in to change notification settings

Segfaultd/rancher-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rancher-api

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());
}
?>

About

Up-to-date Rancher API PHP implementation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages