{"id":20512201,"url":"https://github.com/nidup/manipulate-csv-data-in-php","last_synced_at":"2026-05-29T12:31:55.441Z","repository":{"id":51363819,"uuid":"366770214","full_name":"nidup/manipulate-csv-data-in-php","owner":"nidup","description":"Tutorials on How to Read and Write CSV Files in PHP","archived":false,"fork":false,"pushed_at":"2022-03-24T21:32:22.000Z","size":24873,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T22:46:22.558Z","etag":null,"topics":["csv","php","php8","tutorial"],"latest_commit_sha":null,"homepage":"https://www.nidup.io/blog/manipulate-csv-files-in-php","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/nidup.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-05-12T15:51:49.000Z","updated_at":"2023-11-30T20:26:24.000Z","dependencies_parsed_at":"2022-08-28T05:21:36.703Z","dependency_job_id":null,"html_url":"https://github.com/nidup/manipulate-csv-data-in-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nidup/manipulate-csv-data-in-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-csv-data-in-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-csv-data-in-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-csv-data-in-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-csv-data-in-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nidup","download_url":"https://codeload.github.com/nidup/manipulate-csv-data-in-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-csv-data-in-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33652979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","php","php8","tutorial"],"created_at":"2024-11-15T20:40:18.715Z","updated_at":"2026-05-29T12:31:55.418Z","avatar_url":"https://github.com/nidup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Manipulate CSV Files in PHP 🐘\n\nCode examples for the tutorial [How to Read and Write CSV Files in PHP?](https://www.nidup.io/blog/manipulate-csv-files-in-php)\n\nThe code is packaged as a simple Symfony application with cli commands.\n\nThis series also proposes other PHP data integration tutorials:\n - [How to Read and Write Excel Files in PHP?](https://www.nidup.io/blog/manipulate-excel-files-in-php)\n - [How to Read, Decode, Encode, and Write JSON Files in PHP?](https://www.nidup.io/blog/manipulate-json-files-in-php)\n - [How to Use Google Sheets API in PHP?](https://www.nidup.io/blog/manipulate-google-sheets-in-php-with-api)\n\n## Installation 📦\n\nDownload the source code:\n\n```\ngit clone git@github.com:nidup/manipulate-csv-data-in-php.git\ncd manipulate-csv-data-in-php\n```\n\nThen the installation comes into 2 flavors, directly on your host or using docker.\n\nOnce installed the commands are the same, some docker shortcuts are provided in `.docker/bin`. \n\n### Install directly on your system (option A) 💻\n\nInstall the PHP dependencies: \n\n```\ncomposer install\n```\n\n### Install with docker \u0026 docker-compose (option B) 🐋\n\nBuild the docker image and install the PHP dependencies:\n\n```\ndocker-compose up -d \n.docker/bin/composer install\n```\n\n## Use the console commands 🚀\n\nUse `bin/console` or `.docker/bin/console` to launch a command.\n\nList the commands:\n```\nbin/console --env=prod\n[...]\nnidup\n  nidup:csv-league:generate-big-csv-file  Generate a 1M lines csv file (with league csv)\n  nidup:csv-league:read-big-csv-file      Read a big csv file and measure time and memory (with league csv)\n  nidup:csv-league:read-csv-file          Read a csv file (with league csv)\n  nidup:csv-league:write-csv-file         Write a csv file (with league csv)\n  nidup:csv-native:read-csv-file          Read a csv file (with native functions)\n  nidup:csv-native:write-csv-file         Write a csv file (with native functions)\n[...]\n```\n\nLaunch a command:\n```\nbin/console nidup:csv-league:read-csv-file --env=prod\n```\n\nWe use the prod environment here to have the most efficient execution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidup%2Fmanipulate-csv-data-in-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnidup%2Fmanipulate-csv-data-in-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidup%2Fmanipulate-csv-data-in-php/lists"}