{"id":18323624,"url":"https://github.com/mortalflesh/csv-exporter","last_synced_at":"2025-04-05T23:31:35.714Z","repository":{"id":25721361,"uuid":"106335931","full_name":"MortalFlesh/csv-exporter","owner":"MortalFlesh","description":"Csv exporter for Symfony","archived":false,"fork":false,"pushed_at":"2022-09-21T16:06:01.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T13:45:21.508Z","etag":null,"topics":["csv","csv-export","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MortalFlesh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-09T21:12:32.000Z","updated_at":"2023-01-25T10:11:03.000Z","dependencies_parsed_at":"2022-07-27T05:32:06.284Z","dependency_job_id":null,"html_url":"https://github.com/MortalFlesh/csv-exporter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MortalFlesh%2Fcsv-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MortalFlesh%2Fcsv-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MortalFlesh%2Fcsv-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MortalFlesh%2Fcsv-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MortalFlesh","download_url":"https://codeload.github.com/MortalFlesh/csv-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415783,"owners_count":20935383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","csv-export","symfony"],"created_at":"2024-11-05T18:28:55.049Z","updated_at":"2025-04-05T23:31:30.697Z","avatar_url":"https://github.com/MortalFlesh.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"CSV Exporter\n============\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/mf/csv-exporter.svg)](https://packagist.org/packages/mf/csv-exporter)\n[![Total Downloads](https://img.shields.io/packagist/dt/mf/csv-exporter.svg)](https://packagist.org/packages/mf/csv-exporter)\n[![License](https://img.shields.io/packagist/l/mf/csv-exporter.svg)](https://packagist.org/packages/mf/csv-exporter)\n[![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)\n[![Coverage Status](https://coveralls.io/repos/github/MortalFlesh/csv-exporter/badge.svg?branch=master)](https://coveralls.io/github/MortalFlesh/csv-exporter?branch=master)\n\nCsv exporter for [Symfony](https://github.com/symfony/symfony)\n\n## Installation\n```bash\n$ composer require mf/csv-exporter\n```\n\n## Requirements\n- `PHP 8.0`\n- [league/csv](https://github.com/thephpleague/csv)\n\n## Usage\n\n\u003e For detail explanation see [this issue](https://github.com/MortalFlesh/csv-exporter/issues/2#issuecomment-782130283)\n\n### In Symfony Controller action\n```php\nreturn (new StreamedResponseFactory(/* ...dependencies */)) // from -\u003eget('service')\n    -\u003ecreateCsv(\n        'filename.csv',\n        [\n            'columns...',\n        ],\n        function ($offset, $bulk) use ($repository) {\n            return $repository-\u003efindBulkForExport($offset, $bulk);\n        },\n        function (array $row) {\n            return [\n                $row['key'],\n            ];\n        }\n    );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmortalflesh%2Fcsv-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmortalflesh%2Fcsv-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmortalflesh%2Fcsv-exporter/lists"}