2017 © Pedro Peláez
 

library builder-bundle

Tools for symfony projects

image

fuf/builder-bundle

Tools for symfony projects

  • Friday, November 13, 2015
  • by cm-fuf
  • Repository
  • 8 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

builder-bundle

Tools for Symfony Projects

This package is supposed to collect several tools for interfacing a Symfony application. It provides "missing" tasks for automation and deployments. The package relies heavily on the symfony/console and symfony/process components., (*1)

Installation

Step 1: Download FufBuilderBundle using composer

$ composer require fuf/builder-bundle "dev-master"

You might consider using a tagged version for your project., (*2)

Step 2: Enable the bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Fuf\BuilderBundle\FufBuilderBundle(),
        // ...
    );
}

Requirements

The package uses some common tools which should be available on your system:, (*3)

  1. mysqldump
  2. gzip

These executables should be accessible for the user running the commands. Be aware that mysqldump has to be installed separately from mysql-server and mysql-client components on some systems., (*4)

Usage

For now the bundle provides two tasks., (*5)

$ php app/console fuf:db-conn
symfony;root;%

This command returns the database connection data as a machine readable string. This is primarily a helper tasks for consumption by build or deployment tools, where we would not want to engage a full-on yaml parser. Empty fields are delivered as empty strings., (*6)

The second command allows you to quickly dump a MySQL (or MariaDB) database for your project., (*7)

$ php app/console fuf:sql-dump
Dumped database to symfony_20151113_161108.sql. Resulting file size: 0.0022 MB.

You may add the flag --compress in order to gzip the dump file. The dump file name is composed of the database name and a timestamp. The result file size is calculated and printed, so that you can check if it matches your expectations. The flag --skip allows you to specify a comma separated list of names for tables which are not exported., (*8)

$ php app/console fuf:sql-dump --skip=cache,log
Dumped database to symfony_20151113_161108.sql. Resulting file size: 0.0007 MB.

The --debug flag gives some additional output., (*9)

The Versions

13/11 2015

dev-develop

dev-develop

Tools for symfony projects

  Sources   Download

MIT

The Requires

 

by Christoph Martel

13/11 2015

dev-master

9999999-dev

Tools for symfony projects

  Sources   Download

MIT

The Requires

 

by Christoph Martel

13/11 2015

0.2.3

0.2.3.0

Tools for symfony projects

  Sources   Download

MIT

The Requires

 

by Christoph Martel

13/11 2015

0.2.2

0.2.2.0

Tools for symfony projects

  Sources   Download

MIT

The Requires

 

by Christoph Martel

30/10 2015

0.2.0

0.2.0.0

Global tools for symfony projects.

  Sources   Download

proprietary

The Requires

 

by Christoph Martel

27/10 2015

0.1.0

0.1.0.0

Global tools for symfony projects.

  Sources   Download

proprietary

The Requires

 

by Christoph Martel