{"id":20512206,"url":"https://github.com/nidup/manipulate-excel-data-in-php","last_synced_at":"2025-04-13T22:43:17.182Z","repository":{"id":72831122,"uuid":"473659700","full_name":"nidup/manipulate-excel-data-in-php","owner":"nidup","description":"Code examples for the tutorial How to Read and Write Excel Data in PHP?","archived":false,"fork":false,"pushed_at":"2022-03-24T21:34:13.000Z","size":47,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T13:03:21.378Z","etag":null,"topics":["excel","file","files","php","php8","tutorial"],"latest_commit_sha":null,"homepage":"https://www.nidup.io/blog/manipulate-excel-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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-24T15:15:32.000Z","updated_at":"2024-04-12T18:10:47.000Z","dependencies_parsed_at":"2023-02-26T23:01:03.293Z","dependency_job_id":null,"html_url":"https://github.com/nidup/manipulate-excel-data-in-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-excel-data-in-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-excel-data-in-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-excel-data-in-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-excel-data-in-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nidup","download_url":"https://codeload.github.com/nidup/manipulate-excel-data-in-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794566,"owners_count":21162613,"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":["excel","file","files","php","php8","tutorial"],"created_at":"2024-11-15T20:40:19.598Z","updated_at":"2025-04-13T22:43:17.053Z","avatar_url":"https://github.com/nidup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Manipulate Excel Files in PHP 🐘\n\nCode examples for the tutorial [How to Read and Write Excel Files in PHP?](https://www.nidup.io/blog/manipulate-excel-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 CSV Files in PHP?](https://www.nidup.io/blog/manipulate-csv-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-excel-data-in-php.git\ncd manipulate-excel-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:excel:generate-big-file  Generate a 1M lines excel file (with box/spout)\n  nidup:excel:read-big-file      Read a big excel file and measure time and memory (with box/spout)\n  nidup:excel:read-file          Read an excel file (with box/spout)\n  nidup:excel:write-file         Write an excel file (with box/spout)\n[...]\n```\n\nLaunch a command:\n```\nbin/console nidup:excel:read-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-excel-data-in-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnidup%2Fmanipulate-excel-data-in-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidup%2Fmanipulate-excel-data-in-php/lists"}