Download the PHP package lazier/csv without Composer
On this page you can find all versions of the php package lazier/csv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package csv
Lazier: CSV Component
Lazier CSV provides a simple way to handle CSV files.
Installation
Using Composer:
composer require lazier/csv
Usage
Example:
Create instance of CsvFile
Example:
Ways to create an instance of CsvFile
:
create(<options>)
– Creates an empty CSV filecreateFromArray(array $data)
– Creates an CSV file with given datacreateFromFile(string $filename, <options>)
– Loads CSV file by given filecreateFromResource(resource $handle, <options>)
– Loads CSV file by given resourcecreateFromString(string $input, <options>)
– Loads CSV file by given stringcreateFromUrl(string $url, <options>)
– Loads CSV file by given URL
Optional options for creating an instance of CsvFile
:
useHeaderRow
(default:true
) Uses first row as keys for following rowsseparator
(default:,
) Sets the field separator (one single-byte character only)enclosure
(default:"
) Sets the field enclosure character (one single-byte character only)escape
(default:\
) Sets the escape character (one single-byte character)
Modifying CSV
All versions of csv with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package lazier/csv contains the following files
Loading the files please wait ....