dockercloud / api
A PHP Wrapper for DockerCloud API
Installs: 2 135
Dependents: 1
Suggesters: 0
Security: 0
Stars: 9
Watchers: 5
Forks: 8
Open Issues: 0
Requires
- php: >=5.5
- allansun/websocket: dev-master
- guzzlehttp/guzzle: ~6.0
- monolog/monolog: @stable
- zendframework/zend-eventmanager: ~2 | ~3
- zendframework/zend-filter: ~2
- zendframework/zend-hydrator: ~2
- zendframework/zend-serializer: ~2
- zendframework/zend-servicemanager: ~2
- zendframework/zend-uri: ~2
Requires (Dev)
- doctrine/common: @stable
- fzaninotto/faker: @stable
- mattketmo/camel: ~1
- phpdocumentor/reflection-docblock: ~3
- phpunit/phpunit: ~5.0
- satooshi/php-coveralls: dev-master
README
This is a PHP FULL implementation of DockerCloud's API
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
- Audit
- Infrastructure
- Repositor
- Application