PHPackages                             sebastian/csv-parser - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. sebastian/csv-parser

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sebastian/csv-parser
====================

Library for type-safe parsing of CSV files

2.0.0(1y ago)411.7k31BSD-3-ClausePHPPHP &gt;=8.4CI passing

Since Mar 11Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/sebastianbergmann/csv-parser)[ Packagist](https://packagist.org/packages/sebastian/csv-parser)[ Docs](https://github.com/sebastianbergmann/csv-parser)[ GitHub Sponsors](https://github.com/sebastianbergmann)[ Fund](https://liberapay.com/sebastianbergmann)[ RSS](/packages/sebastian-csv-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

[![No Maintenance Intended](https://camo.githubusercontent.com/a527ad34c8e95a96952ba81a6aa421bc0fd9c18d55bd2b2cb28ff644f428f665/68747470733a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](https://unmaintained.tech/)[![Latest Stable Version](https://camo.githubusercontent.com/0156d0943fe3230e94acf86d647cc52ca6471b327279a7998af4448384b567fb/68747470733a2f2f706f7365722e707567782e6f72672f73656261737469616e2f6373762d7061727365722f76)](https://packagist.org/packages/sebastian/csv-parser)[![CI Status](https://github.com/sebastianbergmann/csv-parser/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/csv-parser/actions)[![codecov](https://camo.githubusercontent.com/91efeb97d7967b5a881f213e9fa18dd9b083965661170fa03e96068b77d7252b/68747470733a2f2f636f6465636f762e696f2f67682f73656261737469616e626572676d616e6e2f6373762d7061727365722f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/sebastianbergmann/csv-parser)

sebastian/csv-parser
====================

[](#sebastiancsv-parser)

Library for type-safe parsing of CSV files.

Installation
------------

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require sebastian/csv-parser

```

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

```
composer require --dev sebastian/csv-parser

```

Usage
-----

[](#usage)

#### `example.csv`

[](#examplecsv)

```
1,2,3,1,0,2023-03-24
```

```
