Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gyselroth/php-helper-storage
PHP helper methods for S3-compatible storage services
https://github.com/gyselroth/php-helper-storage
bucket cloud download file-io php s3 storage upload
Last synced: 4 days ago
JSON representation
PHP helper methods for S3-compatible storage services
- Host: GitHub
- URL: https://github.com/gyselroth/php-helper-storage
- Owner: gyselroth
- License: other
- Created: 2019-07-03T09:04:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-28T19:51:23.000Z (almost 5 years ago)
- Last Synced: 2024-03-23T21:02:45.170Z (8 months ago)
- Topics: bucket, cloud, download, file-io, php, s3, storage, upload
- Language: PHP
- Size: 16.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
gyselroth PHP Storage Helper
============================PHP helper methods for storage services.
Features
--------* Connect to S3 compatible storage service
* List S3 buckets
* Download files from S3 bucket
* Upload files / objects to S3 bucket
#### Useage Example:
```php
'http://127.0.0.0:9000', // using custom/local S3-service, e.g. minio
'accessKey' => '',
'secretKEY' => '',
'region' => ''
];
// Download files from bucket
S3c::downloadFilesFromBucket(
array_merge($awsCredentials, ['bucketName' => 'myDownloadsBucket']),
$pathDownloads,
$deleteDownloadFilesFromBucket);
// Upload objects to bucket
S3c::uploadObjectsToBucket(
array_merge($awsCredentials, ['bucketName' => 'myUploadsBucket']),
[
[
'key' => 'README.md',
'body' => 'hello world!'
]
]);
```History
-------See `CHANGELOG.md`
Author and License
------------------Copyright 2019 gyselroth™ (http://www.gyselroth.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0":http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.