PHPackages                             mawo/csv-toolset - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. mawo/csv-toolset

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

mawo/csv-toolset
================

Handling of CSV data and files.

1.0.0(4y ago)022proprietaryPHP

Since Jul 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mawo/CSVToolset)[ Packagist](https://packagist.org/packages/mawo/csv-toolset)[ RSS](/packages/mawo-csv-toolset/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (2)Used By (0)

CSV Toolset
===========

[](#csv-toolset)

CSV Reader
----------

[](#csv-reader)

Class `CSVReader` is a wrapper around the php function `fgetcsv`. Purpose of the class is easy access to comma separated value lists (CSV Files) identified by column labels.

**Usage Example:**

```
$csv = new \Mawo\CSVToolset\CSVReader();
$csv->load('example.csv', true);

// read all entries with its original column names:
while ($row = $csv->get())
{
    var_dump($row);
}

// reset file pointer to the start of the csv
$csv->rewind();

// column renaming
for ($i=0; $i 'isbn', 'title', 'subtitle', 'author', 'publisher'];
    var_dump($csv->get($csvConfig));
}
```

If you don't have named columns you can still use the wrapper:

**Example**

```
$csv = new \Mawo\CSVToolset\CSVReader();
$csv->load('schedule.csv', false);

// read all entries and create named columns:
while ($row = $csv->get())
{
    // column renaming
    $columnNames = ['title', 'start', 'end', 'weekday'];
    $row = array_combine($columnNames, $row);
    var_dump($row);
}

// fetch only some columns (and name them by the way):
$csv->rewind();
while ($row = $csv->get([0 => 'title', 3 => 'weekday']))
{
    // column renaming
    var_dump($row);
}
```

Missing feature?
----------------

[](#missing-feature)

Drop me a note about your suggestion or fork the repo and create a merge request.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1758d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d51f7aec1b91416b7af7e287acc86950c41f6e08438e9ec8c2725181de4ceff8?d=identicon)[skanto](/maintainers/skanto)

---

Top Contributors

[![mawo](https://avatars.githubusercontent.com/u/1675936?v=4)](https://github.com/mawo "mawo (2 commits)")

---

Tags

comma-separated-valuescsvphp

### Embed Badge

![Health badge](/badges/mawo-csv-toolset/health.svg)

```
[![Health](https://phpackages.com/badges/mawo-csv-toolset/health.svg)](https://phpackages.com/packages/mawo-csv-toolset)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
