2017 © Pedro Peláez
 

library portainer-api

Portainer API client

image

mangati/portainer-api

Portainer API client

  • Thursday, March 15, 2018
  • by rogeriolino
  • Repository
  • 3 Watchers
  • 3 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 38 % Grown

The README.md

portainer-php-api

Portainer API client, (*1)

Install

composer req mangati/portainer-api

Usage

Managing endpoints:, (*2)

$portainer = new \Mangati\Portainer\Client('http://127.0.0.1:9000');
$portainer->auth('admin', '123456789');

$endpointsApi = $portainer->endpoints();
$endpoints    = $endpointsApi->getAll();

print_r($endpoints);

Managing stacks:, (*3)

$stacksApi = $portainer->stacks($endpoints[0]['Id']);
$stacks    = $stacksApi->getAll();

print_r($stacks);

if (count($stacks)) {
    $stacksApi->delete($stacks[0]['Id']);
}

The Versions

15/03 2018

dev-master

9999999-dev

Portainer API client

  Sources   Download

MIT

The Requires

 

15/03 2018

v0.3.0

0.3.0.0

Portainer API client

  Sources   Download

MIT

The Requires

 

02/02 2018

v0.2.0

0.2.0.0

Portainer API client

  Sources   Download

MIT

The Requires

 

25/01 2018

v0.1.0

0.1.0.0

Portainer API client

  Sources   Download

MIT

The Requires