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

https://github.com/xujinheng/s3-mock-server

A mock S3 server written in PHP.
https://github.com/xujinheng/s3-mock-server

aws aws-s3 mock mock-server php s3

Last synced: 3 months ago
JSON representation

A mock S3 server written in PHP.

Awesome Lists containing this project

README

          

# S3-Mock-Server

[![Github All Releases](https://img.shields.io/github/downloads/xujinheng/S3-Mock-Server/total.svg)](https://github.com/xujinheng/S3-Mock-Server/releases/)
[![GitHub License](https://img.shields.io/github/license/xujinheng/S3-Mock-Server.svg?style=flat-square)](https://github.com/xujinheng/S3-Mock-Server/blob/master/LICENSE)

### Introduction
`S3-Mock-Server` is a PHP based server that implements Amazon S3 API.

### Deployment
Download the file in php server:
```bash
curl -L https://github.com/xujinheng/S3-Mock-Server/releases/download/0.0.1/server-single-file.php -o server.php
```

### Usage
```python
import boto3
s3 = boto3.resource("s3", endpoint_url=,
aws_access_key_id=, aws_secret_access_key=)
s3.Bucket().upload_file(, )
s3.Bucket().download_file(, )
```
Check [demo.ipynb](./demo.ipynb) for details.

Supported client:
- [boto3](https://github.com/boto/boto3)

Supported methods:
- Buckets
- Create
- List
- Delete
- Objects
- Create
- List (prefix)
- Download
- Delete