2017 © Pedro PelĂĄez
 

symfony-bundle database-commands-bundle

Provides a series of database commands for your Symfony application, one for the console and 5 capifony tasks.

image

hmillet/database-commands-bundle

Provides a series of database commands for your Symfony application, one for the console and 5 capifony tasks.

  • Friday, July 11, 2014
  • by hmillet
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Hmillet Database Commands Bundle

This bundle provides a way to run a series of cdatabase commands in your Symfony application. It provides one command line for our console, and 5 capifony tasks., (*1)

Installation

Step 1

Using Composer

Add the following code to your composer.json:, (*2)

"require": {
    ...
    "hmillet/database-commands-bundle": "dev-master",
    ...
},

Run a Composer update, (*3)

$ php composer.phar update

Step 2

Register the bundle in the AppKernel.php file:, (*4)

public function registerBundles()
{
    $bundles = array(
        ...
        new Hmillet\DatabaseCommandsBundle\HmilletDatabaseCommandsBundle(),
        ...
    );

    return $bundles;
}

Requirements

This bundle needs (in local and remote server), (*5)

  • mysql (command line)
  • mysqldump (commandline)
  • bunzip2 (commandline)

Command line

Now from your console you can run, (*6)

./app/console db:dump

and see that a new file has been saved in folder /app/tmp/dump with an hard link to the newest one., (*7)

Capifony

If you have installed capifony (http://capifony.org/) this bundle provides to you 6 nice tasks:, (*8)

  • cap db:init - Set remote folders (run it first time)
  • cap db:dump - Create a dump of db in remote folder
  • cap db:download - Download last dump file in local folder
  • cap db:import:production - Import remote db in local production db
  • cap db:import:testing - Import remote db in local testing db

The Versions

11/07 2014

dev-master

9999999-dev https://github.com/hmillet/DatabaseCommands

Provides a series of database commands for your Symfony application, one for the console and 5 capifony tasks.

  Sources   Download

MIT

The Requires

 

by Fabio Fabbrucci
by Hervé Millet

database doctrine mysql backup capifony

10/07 2014

dev-dropbox

dev-dropbox https://github.com/hmillet/DatabaseCommands

Provides a series of database commands for your Symfony application, one for the console and 5 capifony tasks.

  Sources   Download

MIT

The Requires

 

by Fabio Fabbrucci
by Hervé Millet

database doctrine mysql backup capifony