Skip to content

Instantly share code, notes, and snippets.

@leedavis81
Created May 27, 2014 10:31
Show Gist options
  • Save leedavis81/eabb771d6ac3a9a727f0 to your computer and use it in GitHub Desktop.
Save leedavis81/eabb771d6ac3a9a727f0 to your computer and use it in GitHub Desktop.
<?php
var_dump(
$bucketName,
$this->getS3Client()->doesBucketExist($bucketName),
$this->getS3Client()->listBuckets()
);
/**
string 'ldr.kpi.dev' (length=11)
boolean false
object(Guzzle\Service\Resource\Model)[1230]
protected 'structure' => null
protected 'data' =>
array (size=3)
'Owner' =>
array (size=2)
'ID' => string '521c5....' (length=64)
'DisplayName' => string '.....' (length=6)
'Buckets' =>
array (size=4)
0 =>
array (size=2)
'Name' => string 'ldr.kpi.dev' (length=11)
'CreationDate' => string '2014-05-27T08:40:02.000Z' (length=24)
1 =>
array (size=2)
'Name' => string 'ldr.kpi.live' (length=12)
'CreationDate' => string '2014-05-27T08:40:31.000Z' (length=24)
2 =>
array (size=2)
'Name' => string 'ldr.kpi.staging' (length=15)
'CreationDate' => string '2014-05-27T08:40:22.000Z' (length=24)
3 =>
array (size=2)
'Name' => string 'ldr.kpi.testing' (length=15)
'CreationDate' => string '2014-05-27T08:40:13.000Z' (length=24)
'RequestId' => string '338E1CD...' (length=16)
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment