Created
February 22, 2015 22:22
-
-
Save toin0u/ad079714db9f557853a1 to your computer and use it in GitHub Desktop.
DigitalOceanV2 with Guzzle 3.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"toin0u/digitalocean-v2": "0.5.*", | |
"guzzle/guzzle": "~3.9" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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