PHPackages                             billerickson/be-media-from-production - 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. billerickson/be-media-from-production

ActiveWordpress-plugin

billerickson/be-media-from-production
=====================================

Uses local media when available, and uses the production server for the rest.

v1.11.0(10mo ago)238136↑275%29[1 issues](https://github.com/billerickson/BE-Media-from-Production/issues)GPL-2.0-or-laterPHP

Since Jun 10Pushed 8mo ago12 watchersCompare

[ Source](https://github.com/billerickson/BE-Media-from-Production)[ Packagist](https://packagist.org/packages/billerickson/be-media-from-production)[ RSS](/packages/billerickson-be-media-from-production/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

BE Media from Production
========================

[](#be-media-from-production)

Contributors: billerickson,magicroundabout
Requires at least: 4.3 Tested up to: 6.8
Stable tag: 1.11.0
License: GPLv2 or later
License URI:

Uses local media when available, and uses the production server for the rest.

Description
-----------

[](#description)

When redesigning a website with a large uploads directory, you might not need all those uploads in your development or staging environment, but you also don't want to see broken images throughout the site.

This plugin lets you use the production server for missing media. Define the production URL using a constant `BE_MEDIA_FROM_PRODUCTION_URL` or filter `be_media_from_production_url`.

In all cases, if a local file exists, it will be used in preference to the remote file.

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

[](#installation)

Once the plugin is installed, add the following constant to wp-config.php with your production URL.

```
define( 'BE_MEDIA_FROM_PRODUCTION_URL', 'https://www.billerickson.net' );

```

Alternatively, you can use the filter in your theme's functions.php file, a core functionality plugin, or a mu-plugin:

```
add_filter( 'be_media_from_production_url', function() {
	return 'https://www.billerickson.net';
});

```

Installation via WP-CLI and constants
-------------------------------------

[](#installation-via-wp-cli-and-constants)

```
wp plugin install https://github.com/billerickson/be-media-from-production/releases/latest/download/be-media-from-production.zip --force --activate
wp config set BE_MEDIA_FROM_PRODUCTION_URL https://www.billerickson.net --type=constant

```

Using with WP Migrate
---------------------

[](#using-with-wp-migrate)

[WP Migrate](https://deliciousbrains.com/wp-migrate-db-pro/) is my preferred tool for pushing/pulling databases between environments. The media files functionality allows you to transfer media between environments along with the database.

When redesigning a website, I keep all the media on my development server and push up new media uploads along with the database.

Set up a "push" profile to push your local database to the development server. Make sure "Media Files" is checked and select "Compare, then upload".

Set up a "pull" profile to pull the development database locally. Do not include media in your pull. Any missing media will be handled by BE Media from Production.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance58

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 77.8% 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 ~34 days

Total

2

Last Release

302d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c029d8aabe1d90003b9cc2ed5f08c256b62da56e3558cfaebbd10bd2bd3249a?d=identicon)[richw](/maintainers/richw)

---

Top Contributors

[![billerickson](https://avatars.githubusercontent.com/u/685131?v=4)](https://github.com/billerickson "billerickson (56 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")[![delwin](https://avatars.githubusercontent.com/u/385832?v=4)](https://github.com/delwin "delwin (2 commits)")[![graylaurenm](https://avatars.githubusercontent.com/u/1750577?v=4)](https://github.com/graylaurenm "graylaurenm (2 commits)")[![jonschr](https://avatars.githubusercontent.com/u/2929672?v=4)](https://github.com/jonschr "jonschr (2 commits)")[![Levdbas](https://avatars.githubusercontent.com/u/17764157?v=4)](https://github.com/Levdbas "Levdbas (2 commits)")[![cliffordp](https://avatars.githubusercontent.com/u/1812179?v=4)](https://github.com/cliffordp "cliffordp (1 commits)")[![hansschuijff](https://avatars.githubusercontent.com/u/21155718?v=4)](https://github.com/hansschuijff "hansschuijff (1 commits)")[![damiencarbery](https://avatars.githubusercontent.com/u/5992651?v=4)](https://github.com/damiencarbery "damiencarbery (1 commits)")[![rosswintle](https://avatars.githubusercontent.com/u/1532368?v=4)](https://github.com/rosswintle "rosswintle (1 commits)")[![dmytro-kovalov](https://avatars.githubusercontent.com/u/3613874?v=4)](https://github.com/dmytro-kovalov "dmytro-kovalov (1 commits)")[![ethanclevenger91](https://avatars.githubusercontent.com/u/2623646?v=4)](https://github.com/ethanclevenger91 "ethanclevenger91 (1 commits)")

### Embed Badge

![Health badge](/badges/billerickson-be-media-from-production/health.svg)

```
[![Health](https://phpackages.com/badges/billerickson-be-media-from-production/health.svg)](https://phpackages.com/packages/billerickson-be-media-from-production)
```

PHPackages © 2026

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