PHPackages                             dannsbass/google-sheets - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dannsbass/google-sheets

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dannsbass/google-sheets
=======================

Manipulate Google Sheets using PHP

v1.0.1(2y ago)019MITPHP

Since Aug 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dannsbass/google-sheets)[ Packagist](https://packagist.org/packages/dannsbass/google-sheets)[ Docs](https://github.com/dannsbass/google-sheets)[ RSS](/packages/dannsbass-google-sheets/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

PHP Google Sheets API Examples
------------------------------

[](#php-google-sheets-api-examples)

Examples of Google Sheets API implementations using PHP

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

[](#requirements)

1. [PHP](https://php.net) 7.4+
2. a single file named `credentials.json` from [Google](https://console.cloud.google.com/)

Installation
------------

[](#installation)

### Using [Composer](https://getcomposer.org)

[](#using-composer)

To install, just add the following script to your `composer.json` file:

```
{
    "require": {
        "php": ">=8.0.0",
        "dannsbass/google-sheets": "*"
    },
    "scripts": {
        "pre-autoload-dump": "Google\\Task\\Composer::cleanup"
    },
    "extra": {
        "google/apiclient-services": [
            "Sheets"
        ]
    }
}
```

or by running the following command:

```
composer require dannsbass/google-sheets
```

Composer installs autoloader at `./vendor/autoloader.php`. to include the library in your script, add:

```
require_once 'vendor/autoload.php';
```

### Install from source

[](#install-from-source)

Download this library from Github:

```
git clone https://github.com/dannsbass/google-sheets
cd google-sheets
```

Then include `src/Dannsheet.php` in your script:

```
require_once 'src/Dannsheet.php';
```

Usage
-----

[](#usage)

### Creating a simple configuration

[](#creating-a-simple-configuration)

```
