PHPackages                             ttskch/pheetsu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ttskch/pheetsu

ActiveLibrary[API Development](/categories/api)

ttskch/pheetsu
==============

PHP library to CRUDify Google Spreadsheets like sheetsu.com

1831PHP

Since Nov 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ttskch/pheetsu)[ Packagist](https://packagist.org/packages/ttskch/pheetsu)[ RSS](/packages/ttskch-pheetsu/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

pheetsu
=======

[](#pheetsu)

[![Latest Stable Version](https://camo.githubusercontent.com/cf8c286e797f741aa97040cb3ab1e27e3594e5a31e09e9d89599c3da5eae9bd6/68747470733a2f2f706f7365722e707567782e6f72672f7474736b63682f706865657473752f762f737461626c65)](https://packagist.org/packages/ttskch/pheetsu)[![Total Downloads](https://camo.githubusercontent.com/267b629c36d8f5e2fc7bc02c77220b6e3f6d8ee36cd974735d085b5e81abc953/68747470733a2f2f706f7365722e707567782e6f72672f7474736b63682f706865657473752f646f776e6c6f616473)](https://packagist.org/packages/ttskch/pheetsu)

PHP library to CRUDify Google Spreadsheets like [sheetsu.com](https://sheetsu.com).

Requirements
------------

[](#requirements)

- PHP 5.6+

Installations
-------------

[](#installations)

```
$ composer require ttskch/pheetsu:@dev
```

Usage
-----

[](#usage)

If you have a Google Spreadsheet like [this](https://docs.google.com/spreadsheets/d/1JQkfd3dlyxFRuxIwGPnBnrxS-l-bLVw_BbHskxT9Nj4/edit#gid=0),

[![image](https://user-images.githubusercontent.com/4360663/31042852-2c4fca34-a5ec-11e7-83e0-b048ed3fe3c8.png)](https://user-images.githubusercontent.com/4360663/31042852-2c4fca34-a5ec-11e7-83e0-b048ed3fe3c8.png)

You can CRUD the spreadsheet via pheetsu so easily like below.

### Initializing with OAuth2

[](#initializing-with-oauth2)

```
$pheetsu = \Ttskch\Pheetsu\Factory\PheetsuFactory::createOAuth(
    'google_oauth2_client_id',
    'google_oauth2_client_secret',
    'google_oauth2_redirect_uri',
    'google_oauth2_javascript_origin',
    '1JQkfd3dlyxFRuxIwGPnBnrxS-l-bLVw_BbHskxT9Nj4', // spreadsheet id
    'demo' // sheet name
);

// authenticate and be authorized with Google OAuth2.
$pheetsu->authenticate();
```

### Initializing with Service Account

[](#initializing-with-service-account)

```
$pheetsu = \Ttskch\Pheetsu\Factory\PheetsuFactory::createServiceAccount(
    '/path/to/your/service-account-credentials.json',
    '1JQkfd3dlyxFRuxIwGPnBnrxS-l-bLVw_BbHskxT9Nj4', // spreadsheet id
    'demo' // sheet name
);
```

### Using

[](#using)

```
$rows = $pheetsu->read();
var_dump($rows);

// array (size=3)
//   0 =>
//     array (size=3)
//       'id' => string '1' (length=1)
//       'name' => string 'Alice' (length=5)
//       'age' => string '20' (length=2)
//   1 =>
//     array (size=3)
//       'id' => string '2' (length=1)
//       'name' => string 'Bob' (length=3)
//       'age' => string '25' (length=2)
//   2 =>
//     array (size=3)
//       'id' => string '3' (length=1)
//       'name' => string 'Charlie' (length=7)
//       'age' => string '18' (length=2)

```

See also [demo](demo).

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4360663?v=4)[Takashi Kanemoto](/maintainers/ttskch)[@ttskch](https://github.com/ttskch)

---

Top Contributors

[![ttskch](https://avatars.githubusercontent.com/u/4360663?v=4)](https://github.com/ttskch "ttskch (2 commits)")

---

Tags

apicrudgoogle-sheetssheetsuspreadsheets

### Embed Badge

![Health badge](/badges/ttskch-pheetsu/health.svg)

```
[![Health](https://phpackages.com/badges/ttskch-pheetsu/health.svg)](https://phpackages.com/packages/ttskch-pheetsu)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
