Skip to content

Instantly share code, notes, and snippets.

@toin0u
Created February 22, 2015 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toin0u/ad079714db9f557853a1 to your computer and use it in GitHub Desktop.
Save toin0u/ad079714db9f557853a1 to your computer and use it in GitHub Desktop.
DigitalOceanV2 with Guzzle 3.9
{
"require": {
"toin0u/digitalocean-v2": "0.5.*",
"guzzle/guzzle": "~3.9"
}
}
<?php
require __DIR__ . '/vendor/autoload.php';
use DigitalOceanV2\Adapter\GuzzleAdapter;
use DigitalOceanV2\DigitalOceanV2;
$droplet = (new DigitalOceanV2(new GuzzleAdapter('foo')))->droplet();
var_dump($droplet->getAll()); // will return an array of Droplet Entity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment