Download the PHP package mgh-tech/magento2-dev-media-downloader without Composer

On this page you can find all versions of the php package mgh-tech/magento2-dev-media-downloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento2-dev-media-downloader

MGH DevMediaDownloader

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

A lightweight Magento 2 module for on-demand downloading of missing media files from a remote instance during development and testing.

Overview

MGH\DevMediaDownloader streamlines development and testing workflows by automatically downloading missing media files (such as product images) from a remote Magento instance. This module is designed for development, staging, or CI environments where the full media library is not available locally, but is accessible from a production or reference server.

Problem & Solution

Working with a local development environment often means missing large media files. Rather than synchronizing entire media folders, this module intelligently fetches media assets on-demand from your remote instance, improving both developer experience and CI/CD efficiency.

How It Works

When a media file (e.g., an image in /pub/media/) is requested and not found locally:

  1. The module intercepts the request
  2. Attempts to fetch the file from a configured remote base URL
  3. If successful, saves it locally for future requests
  4. Serves the file as if it were present from the start

Workflow Diagram

Key Features

Installation

Option 1: Via Composer (Recommended)

Option 2: Manual Installation

  1. Place the module under app/code/MGH/DevMediaDownloader in your Magento 2 project:

  2. Register the module by running setup upgrade:

  3. Configure the module (see Configuration section below)

Configuration

The module provides the following configuration options under Stores > Configuration > Dev Tools > Dev Media Downloader:

Setting Type Description
Enable On-The-Fly Download Boolean Toggle the module on/off. Only active in developer mode.
Remote Base URL Text The base URL of the remote Magento instance (e.g., https://production.example.com). Do not include a trailing slash.

Configuration via Admin Panel

  1. Navigate to Stores > Configuration > Dev Tools > Dev Media Downloader
  2. Enable the module
  3. Set the remote base URL

Configuration via Command Line

Alternatively, configure the module using the command line:

Example Configuration

Requirements

Compatibility

License

This module is licensed under the MIT License. See the LICENSE.txt file for details.

Author

mgh-tech - Magento 2 Development & Solutions
GitHub: github.com/mgh-tech

Support & Contributions

For issues, questions, or contributions, please visit the GitHub repository.


All versions of magento2-dev-media-downloader with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
magento/framework Version >=102.0.0
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mgh-tech/magento2-dev-media-downloader contains the following files

Loading the files please wait ...