Skip to content

Rancher API is a set of PHP classes for interacting with Rancher

License

Notifications You must be signed in to change notification settings

tkuldeep/rancher-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rancher API

Rancher API is a set of PHP classes for interacting with Rancher.

SensioLabsInsight

## 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.

Contributing

  1. Fork it.
  2. Create your branch: git checkout -b my-new-feature.
  3. Commit your changes: git commit -am 'Add some feature'.
  4. Push to the branch: git push origin my-new-feature.
  5. Submit a pull request.

Links

About

Rancher API is a set of PHP classes for interacting with Rancher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 97.9%
  • Shell 2.1%