mauchede / rancher-api
This package is abandoned and no longer maintained.
No replacement package was suggested.
Rancher API is a set of PHP classes for interacting with Rancher
dev-master / 1.0.x-dev
2020-09-22 19:49 UTC
Requires
- php: >=5.5
- guzzlehttp/guzzle: ^6.0
- jms/serializer: ^1.0
Requires (Dev)
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2020-10-23 05:39:04 UTC
README
Rancher API is a set of PHP classes for interacting with Rancher.
⚠️ This project is no longer maintained. ⚠️
## Installation
Rancher API can be installed via composer:
composer require mauchede/rancher-api
Note: To use the JMS annotation, you may have to configure your autoload
. You can find an example in bootstrap.php.dist.
Usage
use Mauchede\RancherApi\Client\Client; use Mauchede\RancherApi\Resource\Project; $client = new Client('access_key', 'secret_key'); $project = $client->get('endpoint', Project::class); $containers = $project->getContainers();
endpoint
and the API Keys (access_key
and secret_key
) can be found in Rancher settings ([Rancher URL]/settings/api
).
Note: API keys are only available for one project/environment.