PHPackages                             desarrolla2/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. [Database &amp; ORM](/categories/database)
4. /
5. desarrolla2/download-bundle

AbandonedSymfony-bundle[Database &amp; ORM](/categories/database)

desarrolla2/download-bundle
===========================

This bundle provides download utilities for symfony2

1.10.0(3y ago)525.5k↓36.7%3MITPHP

Since Mar 31Pushed 6mo ago2 watchersCompare

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

READMEChangelogDependencies (7)Versions (21)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 "desarrolla2/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 Desarrolla2\DownloadBundle\DownloadBundle();
        }

        // ...
    }

    // ...
}
```

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

[](#configuration)

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

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

    # 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

44

—

FairBetter than 90% of packages

Maintenance46

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 96.7% 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 ~89 days

Recently: every ~289 days

Total

20

Last Release

1325d ago

Major Versions

0.0.1 → 1.0.02018-04-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/661529?v=4)[Daniel González](/maintainers/desarrolla2)[@desarrolla2](https://github.com/desarrolla2)

---

Top Contributors

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

---

Tags

databasesymfony

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[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)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

9410.7k](/packages/ahmed-bhs-doctrine-doctor)[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)
