2017 © Pedro Peláez
 

symfony-bundle data-dictionary

Bundle to expose database composition as data dictionary.

image

mherrera05/data-dictionary

Bundle to expose database composition as data dictionary.

  • Wednesday, December 13, 2017
  • by mherrera05
  • Repository
  • 0 Watchers
  • 0 Stars
  • 118 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 34 % Grown

The README.md

Symfony Bundle, (*1)

Packagist GitHub tag Codacy grade Packagist SensioLabsInsight knpbundles.com, (*2)

Introduction

Data Dictionary is a Symfony Bundle that offers database composition of project rendered as HTML format, making it easy for developers to read field name, data type and comments., (*3)

Requirements

  • PHP 5.3 or higher
  • Symfony 2.x or 3.x
  • Doctrine Symfony Bundle ~1.4
  • Doctrine ORM ^2.4.8
  • Twig ^1.0||^2.0

Installation & Usage

This is a Symfony Bundle with dependency on Doctrine, you can install it via composer., (*4)

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*5)

$ composer require mherrera05/data-dictionary "dev-master"
ó
$ composer require mherrera05/data-dictionary ">=1.0"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*6)

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*7)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new DataDictionaryBundle\DataDictionaryBundle(),
        );

        // ...
    }

    // ...
}

Step 3: Import resources from Bundle

Import bundle resources adding resources in routing.yml., (*8)

data_dictionary:
    resource: "@DataDictionaryBundle/Resources/config/routing.yml"
    prefix:   /

If you prefer, you can add a prefix for URL., (*9)

Step 4: Add vendor templates

Add vendor templates directory as path in twig configuration config.yml., (*10)

twig:
    ...
    paths:
        '%kernel.root_dir%/../vendor/mherrera05/data-dictionary/Resources/views': 'DataDictionaryBundle'

Usage

Step 1: Import model to json files

Once installed and enabled the Bundle, you can execute the command:, (*11)

$ php app/console data:dictionary:import {bundle-name}

This command will export database tables and fields composition to .json files., (*12)

Use the name of bundle where you want to put the json files. Example, Doctrine creates orm.yml from database on your base bundle., (*13)

Step 2: Call URL

Once files have been imported, just call the URL on web browser., (*14)

/app.php/data-dictionary

Maintainer

Miguel Herrera https://github.com/mherrera05/, (*15)

The Versions

13/12 2017

dev-master

9999999-dev

Bundle to expose database composition as data dictionary.

  Sources   Download

MIT

The Requires

 

by Miguel Herrera

13/12 2017

v1.2.0

1.2.0.0

Bundle to expose database composition as data dictionary.

  Sources   Download

MIT

The Requires

 

by Miguel Herrera

13/12 2017

dev-develop

dev-develop

Bundle to expose database composition as data dictionary.

  Sources   Download

MIT

The Requires

 

by Miguel Herrera

07/12 2017

v1.1.2

1.1.2.0

Bundle to expose database composition as data dictionary.

  Sources   Download

MIT

The Requires

 

by Miguel Herrera

06/12 2017

v1.1.1

1.1.1.0

Bundle to expose database composition as data dictionary.

  Sources   Download

MIT

The Requires

 

by Miguel Herrera

05/12 2017

v1.1.0

1.1.0.0

Bundle to expose database composition as data dictionary.

  Sources   Download

MIT

The Requires

 

by Miguel Herrera

27/11 2017

v1.0.1

1.0.1.0

Bundle to expose database composition as data dictionary.

  Sources   Download

MIT

The Requires

 

by Miguel Herrera

27/11 2017

v1.0.0

1.0.0.0

Bundle to expose database composition as data dictionary.

  Sources   Download

MIT

The Requires

 

by Miguel Herrera