2017 © Pedro Peláez
 

library scaleway-php-api

PHP client for the www.scaleway.com API

image

chrisarmitage/scaleway-php-api

PHP client for the www.scaleway.com API

  • Sunday, September 25, 2016
  • by chrisarmitage
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

scaleway-php-api

PHP client for interacting with the Scaleway API (https://developer.scaleway.com/), (*1)

Build Status Scrutinizer Code Quality Code Coverage, (*2)

WARNING

Not production ready, (*3)

Current status

  • Offers enough functionality to create and poweron VC1S servers.
  • No support for volumes yet.
  • No tested on other server types yet.
  • No validation on parameters (Scaleway docs are a little lightweight).

Roadmap

  • Make a Roadmap...

Basic usage

use ChrisArmitage\ScalewayApi as Api;

$client = new Api\Client(new GuzzleHttp\Client(), 'https://api.scaleway.com/', 'youracce-ssto-ken0-0000-000000000000');
$gateway = new Api\WebService\Servers\WebServiceGateway($client);
$endpoint = new Api\Endpoint\Servers($gateway);

$server = $endpoint->createServer('server_name', 'organiza-tion-id00-0000-000000000000', 'imageid0-0000-0000-0000-000000000000', 'VC1S');
$task = $endpoint->setAction($server->getId(), 'poweron');

With Auryn (dependency injection)

use ChrisArmitage\ScalewayApi as Api;

$container = new Auryn\Injector();

$container->define(
    Api\Client::class,
    [
        ':endpoint' => 'https://api.scaleway.com/',
        ':token' => 'youracce-ssto-ken0-0000-000000000000'
    ]
);
$endpoint = $container->make(Api\Endpoint\Servers::class);

$server = $endpoint->createServer('server_name', 'organiza-tion-id00-0000-000000000000', 'imageid0-0000-0000-0000-000000000000', 'VC1S');
$task = $endpoint->setAction($server->getId(), 'poweron');

The Versions

25/09 2016

dev-master

9999999-dev

PHP client for the www.scaleway.com API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Armitage