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
- Host: GitHub
- URL: https://github.com/gwkunze/S3StreamWrapper
- Owner: gwkunze
- License: mit
- Created: 2013-02-05T14:31:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-04-15T14:32:50.000Z (about 5 years ago)
- Last Synced: 2024-05-19T13:20:49.295Z (about 1 month ago)
- Language: PHP
- Size: 22.5 KB
- Stars: 20
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-php-cn - 官网
- awesome-php-cn - 官网
- awesome-php - S3 Stream Wrapper - A stream wrapper library for Amazon S3. (Third Party APIs)
- awesome-php - S3 Stream Wrapper - A stream wrapper library for Amazon S3. (Third Party APIs)
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