darvinstudio/darvin-databaser-bundle

This bundle integrates 'darvinstudio/databaser' with Symfony.

Installs: 3 491

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

5.0.1 2019-12-05 06:49 UTC

This package is auto-updated.

Last update: 2024-11-29 05:26:47 UTC


README

This bundle integrates "darvinstudio/databaser" with Symfony. It allows to easily pull remote database into the local one or push local database into the remote one.

Installation

  1. Install package using Composer:
$ composer require darvinstudio/darvin-databaser-bundle
  1. Register bundle in your AppKernel class:
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Darvin\DatabaserBundle\DarvinDatabaserBundle(),
        // ...
    ];
}

Usage

Pull database

$ /usr/bin/env php bin/console databaser:pull [-k|--key [KEY]] [-p|--password] [-P|--port [PORT]] <user@host> <project_path_remote> [<project_path_local>]

Examples:

$ /usr/bin/env php bin/console databaser:pull root@example.com www/example.com
$ /usr/bin/env php bin/console databaser:pull -P 123 root@example.com /var/www/example.com

Push database

$ /usr/bin/env php bin/console databaser:push [-k|--key [KEY]] [-p|--password] [-P|--port [PORT]] <user@host> <project_path_remote> [<project_path_local>]

Examples:

$ /usr/bin/env php bin/console databaser:push root@example.com www/example.com
$ /usr/bin/env php bin/console databaser:push -P 123 root@example.com /var/www/example.com