sam-it / php-rancher
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sam-it/php-rancher
Requires
- guzzlehttp/guzzle: ^6.2
- myclabs/php-enum: ^1.5
- nette/php-generator: ^2.5
This package is auto-updated.
Last update: 2025-10-08 09:46:19 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);
}