sam-it/php-rancher

Maintainers

👁 SamMousa

Package info

github.com/SAM-IT/php-rancher-client

pkg:composer/sam-it/php-rancher

Statistics

Installs: 12

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-master 2017-05-07 15:32 UTC

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 2208d32fd8cf31c37ccd597ee64917125b23bd98

  • Sam Mousa <sam.woop@mousa.nl>

This package is auto-updated.

Last update: 2026-06-08 12:02:18 UTC


README

This library is a work in progress, it is not in use in any production system.

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.

Retrieval & update

Object retrieval works, both directly from the client and from entities. For example:

$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);
}