{"id":17865793,"url":"https://github.com/ttskch/pheetsu","last_synced_at":"2025-10-14T17:53:27.395Z","repository":{"id":57073386,"uuid":"101230031","full_name":"ttskch/pheetsu","owner":"ttskch","description":"PHP library to CRUDify Google Spreadsheets like sheetsu.com","archived":false,"fork":false,"pushed_at":"2018-11-16T00:47:09.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T21:43:25.703Z","etag":null,"topics":["api","crud","google-sheets","sheetsu","spreadsheets"],"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/ttskch.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":"2017-08-23T22:26:54.000Z","updated_at":"2022-03-17T03:15:42.000Z","dependencies_parsed_at":"2022-08-24T14:54:40.950Z","dependency_job_id":null,"html_url":"https://github.com/ttskch/pheetsu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ttskch/pheetsu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2Fpheetsu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2Fpheetsu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2Fpheetsu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2Fpheetsu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttskch","download_url":"https://codeload.github.com/ttskch/pheetsu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2Fpheetsu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020058,"owners_count":26086807,"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-10-14T02:00:06.444Z","response_time":60,"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":["api","crud","google-sheets","sheetsu","spreadsheets"],"created_at":"2024-10-28T09:25:01.086Z","updated_at":"2025-10-14T17:53:27.364Z","avatar_url":"https://github.com/ttskch.png","language":"PHP","readme":"# pheetsu\n\n[![Latest Stable Version](https://poser.pugx.org/ttskch/pheetsu/v/stable)](https://packagist.org/packages/ttskch/pheetsu)\n[![Total Downloads](https://poser.pugx.org/ttskch/pheetsu/downloads)](https://packagist.org/packages/ttskch/pheetsu)\n\nPHP library to CRUDify Google Spreadsheets like [sheetsu.com](https://sheetsu.com).\n\n## Requirements\n\n- PHP 5.6+\n\n## Installations\n\n```bash\n$ composer require ttskch/pheetsu:@dev\n```\n\n## Usage\n\nIf you have a Google Spreadsheet like [this](https://docs.google.com/spreadsheets/d/1JQkfd3dlyxFRuxIwGPnBnrxS-l-bLVw_BbHskxT9Nj4/edit#gid=0),\n\n![image](https://user-images.githubusercontent.com/4360663/31042852-2c4fca34-a5ec-11e7-83e0-b048ed3fe3c8.png)\n\nYou can CRUD the spreadsheet via pheetsu so easily like below.\n\n### Initializing with OAuth2\n\n```php\n$pheetsu = \\Ttskch\\Pheetsu\\Factory\\PheetsuFactory::createOAuth(\n    'google_oauth2_client_id',\n    'google_oauth2_client_secret',\n    'google_oauth2_redirect_uri',\n    'google_oauth2_javascript_origin',\n    '1JQkfd3dlyxFRuxIwGPnBnrxS-l-bLVw_BbHskxT9Nj4', // spreadsheet id\n    'demo' // sheet name\n);\n\n// authenticate and be authorized with Google OAuth2.\n$pheetsu-\u003eauthenticate();\n```\n\n### Initializing with Service Account\n\n```php\n$pheetsu = \\Ttskch\\Pheetsu\\Factory\\PheetsuFactory::createServiceAccount(\n    '/path/to/your/service-account-credentials.json',\n    '1JQkfd3dlyxFRuxIwGPnBnrxS-l-bLVw_BbHskxT9Nj4', // spreadsheet id\n    'demo' // sheet name\n);\n```\n\n### Using\n\n```\n$rows = $pheetsu-\u003eread();\nvar_dump($rows);\n\n// array (size=3)\n//   0 =\u003e \n//     array (size=3)\n//       'id' =\u003e string '1' (length=1)\n//       'name' =\u003e string 'Alice' (length=5)\n//       'age' =\u003e string '20' (length=2)\n//   1 =\u003e \n//     array (size=3)\n//       'id' =\u003e string '2' (length=1)\n//       'name' =\u003e string 'Bob' (length=3)\n//       'age' =\u003e string '25' (length=2)\n//   2 =\u003e \n//     array (size=3)\n//       'id' =\u003e string '3' (length=1)\n//       'name' =\u003e string 'Charlie' (length=7)\n//       'age' =\u003e string '18' (length=2)\n```\n\nSee also [demo](demo).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttskch%2Fpheetsu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttskch%2Fpheetsu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttskch%2Fpheetsu/lists"}