PHPackages                             thaiphan/magento2-s3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. thaiphan/magento2-s3

AbandonedMagento2-module[File &amp; Storage](/categories/file-storage)

thaiphan/magento2-s3
====================

Use Amazon S3 as the file storage backend for your store.

2.1.0(7y ago)142116.2k—0%91[26 issues](https://github.com/thaiphan/magento2-s3/issues)[1 PRs](https://github.com/thaiphan/magento2-s3/pulls)MITPHP

Since Mar 21Pushed 5y ago13 watchersCompare

[ Source](https://github.com/thaiphan/magento2-s3)[ Packagist](https://packagist.org/packages/thaiphan/magento2-s3)[ RSS](/packages/thaiphan-magento2-s3/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (15)Used By (0)

Thai's S3 Extension for Magento 2
=================================

[](#thais-s3-extension-for-magento-2)

[![Total Downloads](https://camo.githubusercontent.com/4b54b76c122f8bac2d253d123a1ede04bdc4c27a566916540d7ed29c68d6aab0/68747470733a2f2f706f7365722e707567782e6f72672f746861697068616e2f6d6167656e746f322d73332f642f746f74616c2e737667)](https://packagist.org/packages/thaiphan/magento2-s3)[![MIT License](https://camo.githubusercontent.com/4d2fa9ce81847da3372291054cec22a91489c01e41390270f206afacaa6090f1/68747470733a2f2f706f7365722e707567782e6f72672f746861697068616e2f6d6167656e746f322d73332f6c6963656e73652e737667)](https://packagist.org/packages/thaiphan/magento2-s3)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.me/thaiphan)

[Amazon S3](https://aws.amazon.com/s3/) is a popular file storage solution that allows web apps to host images in the cloud. Setting up your web app to use cloud storage removes the need to use the local filesystem to store images. This, in turn, allows companies to spin up more servers to handle more traffic without having to worry also copying over pre-existing images onto these new servers. Cloud storage also provides some other performance benefits, such as shifting a lot of the load of retrieving images for a customer to S3 and the ability to easily set up a CloudFront CDN for your images.

Thai's S3 extension for Magento 2 allows retailers to upload their catalogue and WYSIWYG images straight to Amazon S3.

This is done by overriding the [built-in database file storage mechanism](https://docs.magento.com/m2/ee/user_guide/system/media-storage-database.html) to upload to Amazon S3 bucket instead of MySQL. By handling integration with Amazon S3 in this manner, this extension will work nicely with third-party extensions that properly use Magento's file system mechanisms as well as work with any future Magento functionality.

Support
-------

[](#support)

Magento VersionSupported2.0✅2.1✅2.2✅2.3❎Magento 2.3 introduced breaking changes, which I am still contemplating how to fix. Please be patient or help contribute to this open source project!

Account &amp; pricing
---------------------

[](#account--pricing)

You will need to create an [Amazon AWS account](https://portal.aws.amazon.com/gp/aws/developer/registration/index.html) to get started. The cost to host your images on S3 varies depending on the AWS region that you are using and on the kind and amount of images that you upload. Click here for more detailed pricing information,

Features
--------

[](#features)

### Easy to use

[](#easy-to-use)

This extension is easy to use with little configuration! You only need to follow a few simple steps (and one of them is simply to create a copy of your images as a precaution) to get up and running!

### Sync all your media images

[](#sync-all-your-media-images)

The following images are automatically saved to S3:

- Product images
- Generated thumbnails
- WYSIWYG images
- Category images
- CAPTCHA images
- Logos and favicons

### Magento can now scale horizontally

[](#magento-can-now-scale-horizontally)

Complex file syncing between multiple servers is now a thing of the past with this extension. All your servers will be able to share the one S3 bucket as the single source of media.

### Easy integration with CloudFront CDN

[](#easy-integration-with-cloudfront-cdn)

CloudFront CDN supports using S3 as an origin server so you can significantly reduce load on your servers.

Installation
------------

[](#installation)

See the [Installation](https://github.com/thaiphan/magento2-s3/wiki/Installation) page on the wiki.

Support
-------

[](#support-1)

There's a [Troubleshooting](https://github.com/thaiphan/magento2-s3/wiki/Troubleshooting) page on the wiki that I'll try and keep up to date with any issues that the community might have with the extension.

If you can't find the answer you're looking for, however, feel free to [create a GitHub issue](https://github.com/thaiphan/magento2-s3/issues/new) for support regarding this extension.

FAQs
----

[](#faqs)

### Does this extension upload my log files?

[](#does-this-extension-upload-my-log-files)

No, the S3 extension only syncs across the media folder. You will need to find an alternative solution to store your log files.

### Magento is still loading images from the file system! What went wrong?

[](#magento-is-still-loading-images-from-the-file-system-what-went-wrong)

The S3 extension is built on top of the built-in database file storage, which will re-download files back onto the file system as part of a caching mechanism. Magento will then use this cached version of the image instead of using S3.

If you have enabled S3 integration then you can safely delete the images off your file system **(although please take a backup just in case)**. If you want Magento to not download files to the file system, you can configure your static media URL to point to S3 or CloudFront.

### We did something wrong and all our images are gone! Can you restore it?

[](#we-did-something-wrong-and-all-our-images-are-gone-can-you-restore-it)

I recommend taking a backup of your media files when switching file storage systems. Unfortunately, there's nothing I can do if you somehow accidentally delete them.

Success Stories
---------------

[](#success-stories)

Are you a happy user of my extension? I would love to feature you! [Create a GitHub issue](https://github.com/thaiphan/magento2-s3/issues/new) or [send me an email](mailto:thai@outlook.com) to discuss opportunities for cross promotion!

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 86% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~143 days

Recently: every ~247 days

Total

11

Last Release

1899d ago

Major Versions

1.3.2 → 2.0.02019-02-02

2.1.0 → 3.x-dev2021-02-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/712142fadae4386c2ab23d69896db4c35f22f801a30ca5ddd5a704a0538ac80c?d=identicon)[thaiphan](/maintainers/thaiphan)

---

Top Contributors

[![thaiphan](https://avatars.githubusercontent.com/u/644172?v=4)](https://github.com/thaiphan "thaiphan (43 commits)")[![rakibabu](https://avatars.githubusercontent.com/u/14089150?v=4)](https://github.com/rakibabu "rakibabu (2 commits)")[![lracicot](https://avatars.githubusercontent.com/u/362115?v=4)](https://github.com/lracicot "lracicot (1 commits)")[![atishgoswami](https://avatars.githubusercontent.com/u/2647377?v=4)](https://github.com/atishgoswami "atishgoswami (1 commits)")[![shiftedreality](https://avatars.githubusercontent.com/u/3396658?v=4)](https://github.com/shiftedreality "shiftedreality (1 commits)")[![pinedamg](https://avatars.githubusercontent.com/u/818713?v=4)](https://github.com/pinedamg "pinedamg (1 commits)")[![HommeSauvage](https://avatars.githubusercontent.com/u/14103714?v=4)](https://github.com/HommeSauvage "HommeSauvage (1 commits)")

---

Tags

magento2s3

### Embed Badge

![Health badge](/badges/thaiphan-magento2-s3/health.svg)

```
[![Health](https://phpackages.com/badges/thaiphan-magento2-s3/health.svg)](https://phpackages.com/packages/thaiphan-magento2-s3)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
