PHPackages                             shegroup/download-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shegroup/download-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

shegroup/download-bundle
========================

This bundle provides download utilities for symfony2

1.2.0(3y ago)012.7k—6.1%MITPHPPHP &gt;=7.0

Since Jan 17Pushed 3y agoCompare

[ Source](https://github.com/SheGroup/download-bundle)[ Packagist](https://packagist.org/packages/shegroup/download-bundle)[ RSS](/packages/shegroup-download-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Download Bundle
===============

[](#download-bundle)

This bundle allows you to download a database and folders associated with the project from remote host to local machine. It is the easiest and easiest way to have the same production data in your development environment.

The bundle works using ssh connections so it is necessary that you have configured to connect through a public key.

**Disclaimer**: This bundle works only for environments with linux.

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

[](#installation)

Download the Bundle.

```
composer require --dev "SheGroup/download-bundle"
```

Enable the Bundle

```
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        // enable it only for dev environment
        if (in_array($this->getEnvironment(), ['dev'], true)) {
            $bundles[] = new SheGroup\DownloadBundle\DownloadBundle();
        }

        // ...
    }

    // ...
}
```

Configuration
-------------

[](#configuration)

You need put something like this in your config\_dev.yml

```
download:
    user: 'deploy_user'
    host: 'production_host_or_ip'
    port: 22

    # optional parameter. use it if you want customize max proccess time
    timeout: 300

    database:
        # local directory to save databases
        directory: '%kernel.root_dir%/../var/data/databases'

        # optional parameter. use it for tables that you just want to download the structure, not data
        only_structure:
          - 'mail_history'

        remote:
            host: 'production_database_host'
            name: 'production_database_name'
            user: 'production_database_user'
            password: 'production_database_password'

        local:
            host: '%database_host%'
            name: '%database_name%'
            user: '%database_user%'
            password: '%database_password%'

        # optional parameter. define max number of database files to keep on local directory
        max_local_db: 0

    # some directories that you want download.
    directories:
        web_uploads:
            remote: '/path/to/project/web/uploads'
            local: '%kernel.root_dir%/../web'
            # you can exclude some directories from there
            exclude:
                - 'cache'

        var_data:
            remote: '/path/to/project/var/data'
            local: '%kernel.root_dir%/../var'
            exclude:
                - 'spool'

```

Usage
-----

[](#usage)

### Download

[](#download)

When you execute this command, both the database and the directories are downloaded from the remote environment.

```
php bin/console downloader:download
```

This is what you will see in your command line.

[![screenshot](https://raw.githubusercontent.com/desarrolla2/download-bundle/master/doc/img/screenshot_1.png)](https://raw.githubusercontent.com/desarrolla2/download-bundle/master/doc/img/screenshot_1.png)

### Load

[](#load)

Maybe you want to put your local database in a previous state. This bundle keeps a copy of every download you have made, so going back to one of these states is very easy.

```
php bin/console downloader:load
```

Select from available dates.

[![screenshot](https://raw.githubusercontent.com/desarrolla2/download-bundle/master/doc/img/screenshot_2.png)](https://raw.githubusercontent.com/desarrolla2/download-bundle/master/doc/img/screenshot_2.png)

This is what you will see in your command line.

[![screenshot](https://raw.githubusercontent.com/desarrolla2/download-bundle/master/doc/img/screenshot_3.png)](https://raw.githubusercontent.com/desarrolla2/download-bundle/master/doc/img/screenshot_3.png)

### Delete old databases

[](#delete-old-databases)

Delete old databases from the local directory. The max number of files you can keep is defined by max\_local\_db parameter

```
php bin/console downloader:delete:old
```

Contact
-------

[](#contact)

You can contact with me on [@desarrolla2](https://twitter.com/desarrolla2).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1263d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72cd754ecd632f5de98e7a11bf56e2026ad40195f8d86870d0c3851b5b6427be?d=identicon)[carlos@damecode.com](/maintainers/carlos@damecode.com)

---

Top Contributors

[![desarrolla2](https://avatars.githubusercontent.com/u/661529?v=4)](https://github.com/desarrolla2 "desarrolla2 (25 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/shegroup-download-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/shegroup-download-bundle/health.svg)](https://phpackages.com/packages/shegroup-download-bundle)
```

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

32642.2k24](/packages/symfony-ai-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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