2017 © Pedro Peláez
 

symfony-bundle table-converter-bundle

This bundle provides flexible tool to convert table data between different formats.

image

pvessel/table-converter-bundle

This bundle provides flexible tool to convert table data between different formats.

  • Thursday, April 17, 2014
  • by pvessel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PvesselTableConverterBundle

This simple bundle provides flexible tool to convert table data between different formats. For example:, (*1)

Array coded in json may be converted to csv string, or HTML table can be converted to XML string., (*2)

It uses built-in and external "importers" (to parse source string) and "exporters" (to generate target string)., (*3)

Installation

Step 1: Download PvesselTableConverterBundle using composer

Tell composer to require PvesselTableConverterBundle by running the command:, (*4)

``` bash $ php composer.phar require "pvessel/table-converter-bundle:dev-master", (*5)


Composer will install the bundle to your project's `vendor/pvessel/table-converter-bundle` directory. #### Step 2: Enable the bundle Finally, enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Pvessel\TableConverterBundle\PvesselTableConverterBundle(), ); }

Configuration

This bundle works as service. It means that all you need to get it is:, (*6)

php $convertedTable = $this->container->get('pvessel_table_converter.manager') ->setSource($sourceTable) ->convert($importerAlias, $exporterAlias) ->getTarget();, (*7)

Importers and exporters

In order to run, bundle uses importers and exporters. There are few built-in:, (*8)

  • json
  • xml
  • html_table
  • html_ul
  • ascii_table
  • csv

See Documentation for more informations., (*9)

The Versions

17/04 2014

dev-master

9999999-dev https://github.com/pvessel/table-converter-bundle

This bundle provides flexible tool to convert table data between different formats.

  Sources   Download

MIT

The Requires

 

The Development Requires

json xml html converter