PHPackages                             rakdar/reactphp-csv - 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. rakdar/reactphp-csv

Abandoned → [clue/reactphp-csv](/?search=clue%2Freactphp-csv)Library

rakdar/reactphp-csv
===================

0.2.1(8y ago)3169[1 issues](https://github.com/Rakdar/reactphp-csv/issues)MITPHP

Since Dec 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Rakdar/reactphp-csv)[ Packagist](https://packagist.org/packages/rakdar/reactphp-csv)[ RSS](/packages/rakdar-reactphp-csv/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

reactphp-csv
============

[](#reactphp-csv)

Introduction
------------

[](#introduction)

Uses PHPs internal `fgetcsv` function to parse data into an array or vice versa to file/stream.

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

[](#installation)

```
$ composer require rakdar/reactphp-csv

```

Read from csv-file
------------------

[](#read-from-csv-file)

```
$loop = React\EventLoop\Factory::create();

$inputFd = fopen('country-codes.csv', 'r');
$input = new Rakdar\React\Csv\Reader(
    new React\Stream\ReadableResourceStream($inputFd, $loop)
);

$input->on('data', function ($field) {
    echo $field[10] . PHP_EOL;
});

$loop->run();
```

Write to csv-file
-----------------

[](#write-to-csv-file)

```
$loop = React\EventLoop\Factory::create();

$outputFp = fopen('testfile.csv', 'w');
$output = new Rakdar\React\Csv\Writer(
    new React\Stream\WritableResourceStream($outputFp, $loop)
);
$output->write(['Header 1', 'Header 2', 'Header 3']);
$output->write(['Col 1.1', 'Col 1.2', 'Col 1.3']);
$output->write(['Col 2.1', 'Col 2.2', 'Col 2.3']);

$output->close();

$loop->run();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~43 days

Total

3

Last Release

2980d ago

### Community

Maintainers

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

---

Top Contributors

[![Rakdar](https://avatars.githubusercontent.com/u/5787046?v=4)](https://github.com/Rakdar "Rakdar (9 commits)")

### Embed Badge

![Health badge](/badges/rakdar-reactphp-csv/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k234.7M20.6k](/packages/friendsofphp-php-cs-fixer)[react/react

ReactPHP: Event-driven, non-blocking I/O with PHP.

9.1k3.6M63](/packages/react-react)[react/socket

Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP

1.3k116.9M402](/packages/react-socket)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)[react/child-process

Event-driven library for executing child processes with ReactPHP.

34076.1M136](/packages/react-child-process)[clue/ndjson-react

Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.

15267.7M16](/packages/clue-ndjson-react)

PHPackages © 2026

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