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.
- Host: GitHub
- URL: https://github.com/xujinheng/s3-mock-server
- Owner: xujinheng
- License: bsd-2-clause
- Created: 2022-07-02T18:00:18.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-16T02:45:41.000Z (6 months ago)
- Last Synced: 2026-01-16T16:26:53.775Z (6 months ago)
- Topics: aws, aws-s3, mock, mock-server, php, s3
- Language: PHP
- Homepage:
- Size: 26.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# S3-Mock-Server
[](https://github.com/xujinheng/S3-Mock-Server/releases/)
[](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