{"id":20512195,"url":"https://github.com/nidup/manipulate-google-sheets-api-in-php","last_synced_at":"2025-07-22T19:35:33.973Z","repository":{"id":72831147,"uuid":"473766814","full_name":"nidup/manipulate-google-sheets-api-in-php","owner":"nidup","description":"Code examples for the tutorial How to Use Google Sheets API in PHP?","archived":false,"fork":false,"pushed_at":"2024-05-12T16:01:02.000Z","size":43,"stargazers_count":24,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T22:47:45.962Z","etag":null,"topics":["google-sheet","google-sheets","google-sheets-api","google-sheets-api-v4","php","php8","tutorial"],"latest_commit_sha":null,"homepage":"https://www.nidup.io/blog/manipulate-google-sheets-in-php-with-api","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,"zenodo":null}},"created_at":"2022-03-24T20:41:53.000Z","updated_at":"2025-03-15T01:30:14.000Z","dependencies_parsed_at":"2025-04-13T22:43:04.339Z","dependency_job_id":"b2267490-4607-44dc-90c3-7d397529f93c","html_url":"https://github.com/nidup/manipulate-google-sheets-api-in-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nidup/manipulate-google-sheets-api-in-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-google-sheets-api-in-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-google-sheets-api-in-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-google-sheets-api-in-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-google-sheets-api-in-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nidup","download_url":"https://codeload.github.com/nidup/manipulate-google-sheets-api-in-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-google-sheets-api-in-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266561513,"owners_count":23948632,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["google-sheet","google-sheets","google-sheets-api","google-sheets-api-v4","php","php8","tutorial"],"created_at":"2024-11-15T20:40:17.560Z","updated_at":"2025-07-22T19:35:33.944Z","avatar_url":"https://github.com/nidup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Manipulate Google Sheets API in PHP 🐘\n\nCode examples for the tutorial [How to Use Google Sheets API in PHP?](https://www.nidup.io/blog/manipulate-google-sheets-in-php-with-api)\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 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\n## Installation 📦\n\nDownload the source code:\n\n```\ngit clone git@github.com:nidup/manipulate-google-sheets-api-in-php.git\ncd manipulate-google-sheets-api-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:google-sheets:manipulate-google-sheets  Manipulate Google Sheets\n[...]\n```\n\nThe example of data is in data/movies-100.csv, it can be imported in a new google sheet.\n\nThen the google sheet id can be used as the argument of the following command.\n\nLaunch a command:\n```\nbin/console nidup:google-sheets:manipulate-google-sheets myGoogleSheetId --env=prod\n```\n\nThis command contains various examples that can be commented out to read, write, filter, etc.\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-google-sheets-api-in-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnidup%2Fmanipulate-google-sheets-api-in-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidup%2Fmanipulate-google-sheets-api-in-php/lists"}