PHPackages                             real-coder-pty-ltd/do-spaces-sync - 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. real-coder-pty-ltd/do-spaces-sync

Abandoned → [https://github.com/real-coder-pty-ltd/rc-do-spaces-sync](/?search=https%3A%2F%2Fgithub.com%2Freal-coder-pty-ltd%2Frc-do-spaces-sync)Wordpress-plugin[File &amp; Storage](/categories/file-storage)

real-coder-pty-ltd/do-spaces-sync
=================================

This WordPress plugin syncs your media library with DigitalOcean Spaces Container.

1.0.7(1y ago)014MITPHPPHP &gt;=5.3.3

Since Oct 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/real-coder-pty-ltd/rc-do-spaces-sync)[ Packagist](https://packagist.org/packages/real-coder-pty-ltd/do-spaces-sync)[ Docs](https://github.com/real-coder-pty-ltd/do-spaces-sync)[ RSS](/packages/real-coder-pty-ltd-do-spaces-sync/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

DigitalOcean Spaces Sync
------------------------

[](#digitalocean-spaces-sync)

This plugin is a fork from It works for php 7.X.X and allows to sync your Wordpress media library with [DigitalOcean Spaces](https://m.do.co/c/e9b4b603df13) Container.

### Description

[](#description)

This WordPress plugin syncs your media library with [DigitalOcean Spaces](https://m.do.co/c/e9b4b603df13) Container. It allows you to simuntanously upload and delete files, replacing public media URL with relative cloud storage links. You can choose between two options, to keep local copy of the files, or to delete them and keep files only in cloud storage.

In order to use this plugin, you have to create a DigitalOcean Spaces API key.

You may now define constants in order to configure the plugin. If the constant is defined, it overwrites the value from settings page. Contants description:

- `DOS_KEY` - DigitalOcean Spaces key
- `DOS_SECRET` - DigitalOcean Spaces secret,
- `DOS_ENDPOINT` - DigitalOcean Spaces endpoint,
- `DOS_CONTAINER` - DigitalOcean Spaces container,
- `DOS_STORAGE_PATH` - The path to the file in the storage, will appear as a prefix,
- `DOS_STORAGE_FILE_ONLY` - Keep files only in DigitalOcean Spaces or not, values (true|false),
- `DOS_STORAGE_FILE_DELETE` - Remove files in DigitalOcean Spaces on delete or not, values (true|false),
- `DOS_FILTER` - A Regex filter,
- `UPLOAD_URL_PATH` - A full url to the files, WP Constant,
- `UPLOAD_PATH` - A path to the local files, WP Constant

There is a known issue with the built in Wordpress Image Editor, it will not upload changed images. Know how to fix this, PR welcome.

### Installation

[](#installation)

1. Upload plugin directory to `/wp-content/plugins/`
2. Activate plugin through 'Plugins' menu in WordPress
3. Go to `Settings -> DigitalOcean Spaces Sync` and set up plugin

If plugin has been downloaded from GitHub, you have to install vendor components via `composer update`.

---

Image Handling "Best Practices"
-------------------------------

[](#image-handling-best-practices)

Configure settings -&gt; media sizes based on the websites' design requirements (thumb max size, hero image max size, etc.). Add additional sizes if required via registering new sizes hooks.

Use WordPress native features to get images attached to a listing via `get_the_post_thumbnail()` eg:

```

```

Get attached media via:

```
$attachments = get_attached_media('image', $property->post->ID);
$media = [];

// Get the attachment IDs.
foreach ($attachments as $attachment) {
	$media[] = $attachment->ID;
}

```

For the gallery, loop over your media and output the images via WP native functionality like so:

```
wp_get_attachment_image( $attachment_id, $size, $icon, $attr );

```

working example:

```
foreach($attachments as $attachment) {
	echo wp_get_attachment_image( $attachment->ID, $size, false, ['class' => 'gallery-image'] );
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

8

Last Release

568d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6467fec6d6e47185f8f6c91f1a021205d864ea454a43f386e746756edc6d5217?d=identicon)[realcoder](/maintainers/realcoder)

---

Top Contributors

[![mattneal-stafflink](https://avatars.githubusercontent.com/u/68095856?v=4)](https://github.com/mattneal-stafflink "mattneal-stafflink (12 commits)")

---

Tags

s3awsstoragespacesdigitaloceancloudfiles

### Embed Badge

![Health badge](/badges/real-coder-pty-ltd-do-spaces-sync/health.svg)

```
[![Health](https://phpackages.com/badges/real-coder-pty-ltd-do-spaces-sync/health.svg)](https://phpackages.com/packages/real-coder-pty-ltd-do-spaces-sync)
```

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.1k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M782](/packages/league-flysystem-aws-s3-v3)[deliciousbrains/wp-amazon-s3-and-cloudfront

Automatically copies media uploads to a storage provider's bucket for delivery. Optionally configure a CDN for even faster delivery.

310213.3k1](/packages/deliciousbrains-wp-amazon-s3-and-cloudfront)[league/flysystem-async-aws-s3

AsyncAws S3 filesystem adapter for Flysystem.

2610.5M30](/packages/league-flysystem-async-aws-s3)[vaersaagod/dospaces

DigitalOcean Spaces integration for Craft CMS

36100.3k1](/packages/vaersaagod-dospaces)

PHPackages © 2026

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