2017 © Pedro Peláez
 

library php-rancher

image

sam-it/php-rancher

  • Sunday, May 7, 2017
  • by SamMousa
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

WORK IN PROGRESS

This library is a work in progress, it is not in use in any production system., (*1)

#

The idea behind this API client is that it defines a minimal skeleton code which then generates the remaining code from the Rancher API itself. For now i've included all the generated class in the repository to make inspection / reasoning about the generated code easier., (*2)

Retrieval & update

Object retrieval works, both directly from the client and from entities. For example:, (*3)

$project = $client->getAccounts()[0]->getProjects()[0];
$project->name .= 'x';
if ($project->save()) {
    echo "Project name is now:" . $project->name;
} else {
    echo "Failed to update project.";
    print_r($project->errors);
}

The Versions