2017 © Pedro Peláez
 

component loader

Zebba Loader Component

image

zebba/loader

Zebba Loader Component

  • Thursday, January 22, 2015
  • by zebba
  • Repository
  • 1 Watchers
  • 0 Stars
  • 67 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Loader

Installation

Modify your composer.json:, (*1)

{
    "require" : {
        "zebba/loader" : "1.*"
    }
}    

Usage

Parsing CSV files

``` php <?php, (*2)

$csv = "key1;key2\r\nvalue1;2\r\nvalue2;3";, (*3)

// $csv = new \SplFileInfo(...);, (*4)

try { $output = Csv::parse($csv); } catch (\Zebba\Component\Loader\Exception\ParseException $e) { throw $e; }, (*5)

/* * $output = array( * array( * 'key1' => 'value1', * 'key2' => 2, * ), array( * key1' => 'value2', * 'key2' => 3, * ) * ); */, (*6)


### Dumping arrays to CSV files ``` php <?php <?php $input = array( array( 'key1' => 'value1', 'key2' => 2, ), array( 'key1' => 'value2', 'key2' => 3, ) ); $csv = Csv::dump($input); // $csv = "key1;key2\r\nvalue1;2\r\nvalue2;3";

The Versions

22/01 2015

dev-master

9999999-dev https://github.com/zebba/Loader

Zebba Loader Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Kuhlmann

22/01 2015

1.0.5

1.0.5.0 https://github.com/zebba/Loader

Zebba Loader Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Kuhlmann

22/01 2015

1.0.4

1.0.4.0 https://github.com/zebba/Loader

Zebba Loader Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Kuhlmann

22/01 2015

1.0.3

1.0.3.0 https://github.com/zebba/Loader

Zebba Loader Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Kuhlmann

22/01 2015

1.0.2

1.0.2.0 https://github.com/zebba/Loader

Zebba Loader Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Kuhlmann

02/01 2015

1.0.1

1.0.1.0 https://github.com/zebba/Loader

Zebba Loader Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Kuhlmann

02/01 2015

1.0

1.0.0.0 https://github.com/zebba/Loader

Zebba Loader Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Kuhlmann