2017 © Pedro Peláez
 

library php-csv

CSV-to-array conversion in PHP.

image

chrisullyott/php-csv

CSV-to-array conversion in PHP.

  • Saturday, March 24, 2018
  • by chrisullyott
  • Repository
  • 0 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

php-csv

CSV-to-array conversion in PHP., (*1)

Installation

With Composer:, (*2)

$ composer require chrisullyott/php-csv

Usage

ID First Name Last Name
15 Ethan Hunt
16 Jim Phelps
17 Luther Stickell
$parser = new CsvParser('/path/to/data.csv');

$items = $parser->getItems();

print_r($items);
Array
(
    [0] => Array
        (
            [id] => 15
            [first_name] => Ethan
            [last_name] => Hunt
        )

    [1] => Array
        (
            [id] => 16
            [first_name] => Jim
            [last_name] => Phelps
        )

    [2] => Array
        (
            [id] => 17
            [first_name] => Luther
            [last_name] => Stickell
        )

)

The Versions

24/03 2018

dev-master

9999999-dev https://github.com/chrisullyott/php-csv

CSV-to-array conversion in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

24/12 2017

v1.0.0

1.0.0.0 https://github.com/chrisullyott/php-csv

CSV-to-array conversion in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0