Download the PHP package macocci7/php-csv without Composer
On this page you can find all versions of the php package macocci7/php-csv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download macocci7/php-csv
More information about macocci7/php-csv
Files in macocci7/php-csv
Download macocci7/php-csv
More information about macocci7/php-csv
Files in macocci7/php-csv
Vendor macocci7
Package php-csv
Short Description A simple PHP library for operating a csv.
License MIT
Package php-csv
Short Description A simple PHP library for operating a csv.
License MIT
Please rate this library. Is it a good library?
Informations about the package php-csv
PHP-Csv
A simple PHP library for csv operation.
Contents
- Requirements
- Installation
- Usage
- Examples
- LICENSE
Requirements
- PHP 8.1 (CLI) or later
- Composer
Installation
Usage
-
PHP:
- Result:
Methods
load()
: loads csv specified by the paramsave()
: saves data into a csv file specified by the paramencode()
: encodes loaded csv datacountRows()
: returns the count of rows of the csvcountColumns()
: returns the max count of columns of the csvbool()
: specify the cast type as (bool
)int()
: specify the cast type as (int
)float()
: specify the cast type as (float
)string()
: specify the cast type as (string
)raw()
: unset the cast typecastType()
: returns current cast typeoffsetRow()
: specify offset of rowsrow()
: retrieve the specified row as an arraycolumn()
: retrieve the specified column as an arraydump()
: returns all data as csvdumpArray()
: returns all data as an arrayclear()
: clears loaded csv datacell()
: returns the value in the cellrowsBetween()
: returns rows between specified row numbersrows()
: returns first$n
rows.head()
: returns$n
rows from the beginning of csvtail()
: returns$n
rows from the end of csv
Examples
- UseCsv.txt
LICENSE
MIT
Document Created 2023/11/10
Document Updated 2025/01/03
Copyright 2023-2025 macocci7.
All versions of php-csv with dependencies
PHP Build Version
Package Version
No informations.
The package macocci7/php-csv contains the following files
Loading the files please wait ....