2017 © Pedro Peláez
 

library rancher-php

RancherPHP is PHP client library for interacting with the Rancher API

image

haswalt/rancher-php

RancherPHP is PHP client library for interacting with the Rancher API

  • Wednesday, November 18, 2015
  • by haswalt
  • Repository
  • 1 Watchers
  • 5 Stars
  • 974 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Rancher PHP

RancherPHP is a PHP client for interacting with the Rancher API. Rancher's API provides a traversable tree or resources and RancherPHP exposes these in a simple interface., (*1)

$client = new Rancher\Client('http://localhost:9000/v1', 'key', 'secret');
$projects = $client->getProjects();

$services = $projects->first()->getServices();

Installing RancherPHP

The recommended way to install RancherPHP is through Composer., (*2)

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of RancherPHP:, (*3)

composer.phar require haswalt/rancher-php

After installing, you need to require Composer's autoloader:, (*4)

require 'vendor/autoload.php';

You can then later update RancherPHP using composer:, (*5)

composer.phar update

TODO

  • Implement more resource types
  • Add tests
  • Implement complex actions

The Versions

18/11 2015

dev-master

9999999-dev http://github.com/haswalt/RancherPHP

RancherPHP is PHP client library for interacting with the Rancher API

  Sources   Download

MIT

The Requires

 

The Development Requires

docker client web service rancher