Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/gwkunze/S3StreamWrapper

A PHP Stream wrapper for Amazon S3
https://github.com/gwkunze/S3StreamWrapper

Last synced: 18 days ago
JSON representation

A PHP Stream wrapper for Amazon S3

Lists

README

        

# S3StreamWrapper #

A simple stream wrapper for Amazon S3.

Example
=======

``` php
[
'key' => "YOUR AWS KEY HERE",
'secret' => "YOUR AWS SECRET HERE"
],
'region' => 'us-east-1',
'version' => '2006-03-01'
);

stream_context_set_default(array('s3' => $options));

echo file_get_contents("s3://mybucket/file1");

echo file_put_contents("s3://mybucket/file2", "Foobar!");

print_r(scandir("s3://mybucket/"));
```

License
=======

MIT, See LICENSE