Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

allansun/docker-cloud-php-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DockerCloud API PHP Wrapper

This is a PHP FULL implementation of DockerCloud's API

Minimum PHP Version Latest Stable Version Build Status Coverage Status Gitter

Installation

Add a dependency on dockercloud/api to your project's composer.json by utilizing the [Composer](https://getcomposer .org/) package manager.

{
    "require-dev": {
        "dockercloud/api": "@stable"
    }
}

Usage instruction

Goto https://cloud.docker.com/account/#container-api-key to generate an API Key first.

Now you need to configure authentication credentials via a static method, (you only need to do this once).

DockerCloud\Client::configure('username','apikey');

To get a list of services under your account:

$API = new DockerCloud\API\Service();
$Response = $API->getList();
$MetaData = $Response->getMeta();
$services = $Response->getObjects();

To create a new service

$Model = new DockerCloud\Model\Service();
$Model->setImageName('tutum/hello-world');

$API = new DockerCloud\API\Service();
$Model = $API->create($Model);

API Implementations

This API Wrapper implements all API endpoints currently provided by DockerCloud, for full documentation on how to use it please refere to API

About

DockerCloud API PHP Wrapper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages