Download the PHP package mmerian/csv without Composer
On this page you can find all versions of the php package mmerian/csv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor mmerian
Package csv
Short Description A library for easily reading and writing CSV files
License MIT
Package csv
Short Description A library for easily reading and writing CSV files
License MIT
Please rate this library. Is it a good library?
Informations about the package csv
csv
This library is designed to help you read and write csv files.
Usage
Reading CSV files
Say you have a CSV file that looks like this :
Instanciating the reader is really easy :
In this example, $file
can be the path to an existing file, or a pointer to an already open file.
Available options are :
'hasHeader'
: A boolean determining if the first line of the CSV file is a head with fields names'header'
: If the CSV file doesn't have a header, you can provide one here. If both'header'
and'hasHeader'
are provided, the'header'
option takes precedence'inputEncoding'
: The encoding of the CSV file. Defaults to UTF-8'outputEncoding'
: The encoding of the data that will be returned when reading the file. If'inputEncoding'
and'outputEncoding'
are different, the reader automatically uses mbstring to convert'delimiter'
: The CSV delimiter'enclosure'
: The CSV enclosure'ignoreEmptyLines'
: If set to true (the default), the reader will silently ignore empty lines. Otherwise, an exception will be raised if an empty line is encountered
Automatic field processing
The reader is also able to apply formatting functions to your CSV fields.
All versions of csv with dependencies
PHP Build Version
Package Version
Requires
php Version
>= 5.3.0
ext-mbstring Version *
ext-mbstring Version *
The package mmerian/csv contains the following files
Loading the files please wait ....