{"id":18550027,"url":"https://github.com/andrearufo/gsx2json4php","last_synced_at":"2026-02-08T08:02:46.379Z","repository":{"id":52414861,"uuid":"162887141","full_name":"andrearufo/gsx2json4php","owner":"andrearufo","description":"A PHP class to parse a Google Spreadsheet to JSON","archived":false,"fork":false,"pushed_at":"2021-04-29T21:01:59.000Z","size":10,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T12:39:38.457Z","etag":null,"topics":["composer","google-spreadsheet","json","parse","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrearufo.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":"2018-12-23T12:04:00.000Z","updated_at":"2020-04-23T16:43:56.000Z","dependencies_parsed_at":"2022-08-26T04:00:45.707Z","dependency_job_id":null,"html_url":"https://github.com/andrearufo/gsx2json4php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearufo%2Fgsx2json4php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearufo%2Fgsx2json4php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearufo%2Fgsx2json4php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearufo%2Fgsx2json4php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrearufo","download_url":"https://codeload.github.com/andrearufo/gsx2json4php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248114898,"owners_count":21050137,"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":["composer","google-spreadsheet","json","parse","php"],"created_at":"2024-11-06T21:03:21.662Z","updated_at":"2026-02-08T08:02:41.359Z","avatar_url":"https://github.com/andrearufo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gsx2json4php\n\nThe **gsx2json4php** is a simple PHP class to parse a Google Spreadsheet into a JSON.\n\nThis is inspired by https://github.com/55sketch/gsx2json:\n\n\u003e One useful feature of Google Spreadsheets is the ability to access the data as JSON by using a particular feed URL. However, this is a bit fiddly to do, and the resulting JSON is pretty unreadable, with usable data buried deep inside objects.\n\u003e\n\u003eThis API connects to your spreadsheet and santizes the data, providing simple, readable JSON for you to use in your app.\n\n## Installing gsx2json4php\n\nThe recommended way to install gsx2json4php is through Composer.\n\n```\ncurl -sS https://getcomposer.org/installer | php\n```\n\nNext, run the Composer command to install the latest stable version of gsx2json4php:\n\n```\nphp composer.phar require andrearufo/gsx2json4php\n```\n\nor\n\n```\ncomposer require andrearufo/gsx2json4php\n```\n\nAfter installing, you need to require Composer's autoloader:\n\n```\nrequire 'vendor/autoload.php';\n```\n\nYou can then later update gsx2json4php using composer:\n\n```\nphp composer.phar update\n```\n\n## How to use\n\nFirst, you must publish your spreadsheet to the web, using _File -\u003e Publish To Web_ in your Google Spreadsheet.\n\nCopy your Spreadsheet ID to use into the script:\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\nuse AndreaRufo\\Gsx2Json4Php;\n\n$id = '1QhzoMZY8LZ7ynfqnXlH9cqKax16_ECOqThgjbHqCO7Q';\n$json = new Gsx2Json4Php($id);\n\necho $json-\u003egetJson();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrearufo%2Fgsx2json4php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrearufo%2Fgsx2json4php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrearufo%2Fgsx2json4php/lists"}