2017 © Pedro Peláez
 

library csv

library for working with csv

image

mhndev/csv

library for working with csv

  • Monday, February 20, 2017
  • by majidphpdeveloper
  • Repository
  • 1 Watchers
  • 6 Stars
  • 104 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Build Status Total Downloads Latest Stable Version License, (*1)

CSV

powerful and fully tested php library to work with csv files, (*2)

features :

convert an array to a csv file

convert a csv file to an array

convert a csv file to an array using php generators

delete a line from csv file by line number

delete multiple line from csv file by specific column value

update a line from a csv file by line number

update multiple line from a csv file by specific column value

find one line from a csv file by specific column value

find many line from a csv file by specific column value

Sample Usage


use mhndev\csv\Csv; $csv = new Csv(); $sampleArray = [[1,2,3,4,5],[6,7,8,9,10]]; $filename ="/path/to/test.csv"; $csv->arrayToCsv($sampleArray, $filename); $resultArrayIterator = $csv->csvToArrayUsingGenerator($filename); $csv = new Csv(); $sampleArray = [[1,2,3,4,5],[6,7,8,9,10],[11,12,13,14,15]]; $filename ="/path/to/test.csv"; $csv->arrayToCsv($sampleArray, $filename); $csv->deleteOneLineById($filename, 1); $csv = new Csv(); $sampleArray = [[1,2,3,4,5],[6,7,8,9,10],[6,'hamid',8,9,'majid']]; $filename ="/path/to/test.csv"; $csv->arrayToCsv($sampleArray, $filename); $csv->updateLineBy($filename, [2=>8] , [11,12,13,14,15]);

The Versions

20/02 2017

dev-master

9999999-dev http://github.com/mhndev/csv

library for working with csv

  Sources   Download

BSD Style

The Requires

  • php >=5.4.0

 

The Development Requires

csv csv library csv manipulation parse csv csv to array

20/02 2017

dev-develop

dev-develop http://github.com/mhndev/csv

library for working with csv

  Sources   Download

BSD Style

The Requires

  • php >=5.4.0

 

The Development Requires

csv csv library csv manipulation parse csv csv to array

20/02 2017

1.3.2

1.3.2.0 http://github.com/mhndev/csv

library for working with csv

  Sources   Download

BSD Style

The Requires

  • php >=5.4.0

 

The Development Requires

csv csv library csv manipulation parse csv csv to array

18/02 2017

1.3.1

1.3.1.0 http://github.com/mhndev/csv

library for working with csv

  Sources   Download

BSD Style

The Requires

  • php >=5.4.0

 

The Development Requires

csv csv library csv manipulation parse csv csv to array

18/02 2017

1.3.0

1.3.0.0 http://github.com/mhndev/csv

library for working with csv

  Sources   Download

BSD Style

The Requires

  • php >=5.4.0

 

The Development Requires

csv csv library csv manipulation parse csv csv to array

19/05 2016

1.2

1.2.0.0 http://github.com/mhndev/csv

library for working with csv

  Sources   Download

BSD Style

The Requires

  • php >=5.4.0

 

The Development Requires

csv csv library csv manipulation

19/05 2016

1.1

1.1.0.0 http://github.com/mhndev/csv

library for working with csv

  Sources   Download

BSD Style

The Requires

  • php >=5.4.0

 

The Development Requires

csv csv library csv manipulation

19/05 2016

1.0.0

1.0.0.0 http://github.com/mhndev/csv

library for working with csv

  Sources   Download

BSD Style

The Requires

  • php >=5.4.0

 

The Development Requires

csv csv library csv manipulation