2017 © Pedro Peláez
 

library csv

image

ryoueno/csv

  • Saturday, April 8, 2017
  • by ryoueno
  • Repository
  • 0 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP Library for using csv file (`・ω・´)

Installation

You can use Composer or simply Download the Release.

    composer require ryoueno/csv

Usage

[0] Get csv ready.

    id, name,
    1, "UDON",
    2, "SHUSHI",
    ・
    ・
    ・

[1] Make src instance just to set your path of csv file.

    $src = new \Gojiro\Src('path/to/MyCSV.csv');

[2] Make instance of csv by setting it.

    $csv = new \Gojiro\Csv($src);

[3] Get data.

    $csv->get();
    /*
        [
            0 => [
                'id' => 1,
                'name' => 'UDON',
            ],
            1 => [
                'id' => 2,
                'name' => 'SHUSHI',
            ]
            .
            .
            .
        ]
    */

[4] You can use select/where query like DB language.

    $csv->select(['name'])->where->(['id' => 2])->get();
    /*
        [
            1 => [
                'name' => 'SHUSHI',
            ]
        ]
    */

The Versions

08/04 2017

dev-master

9999999-dev

  Sources   Download

The Development Requires

by Avatar ryoueno

08/04 2017

v1.1

1.1.0.0

  Sources   Download

The Development Requires

by Avatar ryoueno

06/04 2017

v1.0

1.0.0.0

  Sources   Download

The Development Requires

by Avatar ryoueno

06/04 2017

v1.0.x-dev

1.0.9999999.9999999-dev

  Sources   Download

The Development Requires

by Avatar ryoueno