PHPackages                             mf/csv-exporter - 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. mf/csv-exporter

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

mf/csv-exporter
===============

CSV Exporter

4.0.0(3y ago)25.3k↓33.3%MITPHPPHP ^8.1

Since Oct 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MortalFlesh/csv-exporter)[ Packagist](https://packagist.org/packages/mf/csv-exporter)[ RSS](/packages/mf-csv-exporter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (10)Versions (7)Used By (0)

CSV Exporter
============

[](#csv-exporter)

[![Latest Stable Version](https://camo.githubusercontent.com/94d6ca26c45d9b5ee6fc017159d855ff6903cdc90a4718d0765588373284503e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d662f6373762d6578706f727465722e737667)](https://packagist.org/packages/mf/csv-exporter)[![Total Downloads](https://camo.githubusercontent.com/161d1f608bbdfc1466a8561ef1ab7f46e8ca5444295218b23804c1cdee86093b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d662f6373762d6578706f727465722e737667)](https://packagist.org/packages/mf/csv-exporter)[![License](https://camo.githubusercontent.com/01af9f3518f60f6292968a089af8cf0f7502cc3dc5f444a733e040189891f854/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d662f6373762d6578706f727465722e737667)](https://packagist.org/packages/mf/csv-exporter)[![Tests and linting](https://github.com/MortalFlesh/csv-exporter/actions/workflows/tests.yaml/badge.svg)](https://github.com/MortalFlesh/csv-exporter/actions/workflows/tests.yaml)[![Coverage Status](https://camo.githubusercontent.com/e33af909cd83e73f62f85bd9343ac6a587ad7de6910c5b531862947b6ba0ada7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4d6f7274616c466c6573682f6373762d6578706f727465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/MortalFlesh/csv-exporter?branch=master)

Csv exporter for [Symfony](https://github.com/symfony/symfony)

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

[](#installation)

```
$ composer require mf/csv-exporter
```

Requirements
------------

[](#requirements)

- `PHP 8.0`
- [league/csv](https://github.com/thephpleague/csv)

Usage
-----

[](#usage)

> For detail explanation see [this issue](https://github.com/MortalFlesh/csv-exporter/issues/2#issuecomment-782130283)

### In Symfony Controller action

[](#in-symfony-controller-action)

```
return (new StreamedResponseFactory(/* ...dependencies */)) // from ->get('service')
    ->createCsv(
        'filename.csv',
        [
            'columns...',
        ],
        function ($offset, $bulk) use ($repository) {
            return $repository->findBulkForExport($offset, $bulk);
        },
        function (array $row) {
            return [
                $row['key'],
            ];
        }
    );
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity76

Established project with proven stability

 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 ~361 days

Recently: every ~257 days

Total

6

Last Release

1335d ago

Major Versions

1.1.0 → 2.0.02021-04-06

2.0.0 → 3.0.02021-04-06

3.1.0 → 4.0.02022-09-21

PHP version history (5 changes)1.0.0PHP &gt;=7.1

1.1.0PHP ^7.1

2.0.0PHP ^7.4

3.0.0PHP ^8.0

4.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bdf0b9957c08a48e70a52fce74fc4f1add30b12d442450d5e2b48854fc98b21?d=identicon)[MortalFlesh](/maintainers/MortalFlesh)

---

Top Contributors

[![MortalFlesh](https://avatars.githubusercontent.com/u/6317184?v=4)](https://github.com/MortalFlesh "MortalFlesh (20 commits)")

---

Tags

csvcsv-exportsymfony

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mf-csv-exporter/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[sensiolabs/gotenberg-bundle

A Symfony bundle that provides seamless integration with Gotenberg for generating PDFs and screenshots from various sources (HTML, Markdown, Office documents, URLs) with a clean, builder-based API.

210210.4k2](/packages/sensiolabs-gotenberg-bundle)[ee/dataexporter-bundle

Easy export data to CSV, XML, HTML, JSON or XLS

4982.5k](/packages/ee-dataexporter-bundle)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)[siphoc/pdf-bundle

Siphoc PDF Bundle for Symfony2

1442.4k](/packages/siphoc-pdf-bundle)[egyg33k/csv-bundle

Integration of League CSV into Symfony

1027.1k](/packages/egyg33k-csv-bundle)

PHPackages © 2026

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