Download the PHP package reandimo/google-sheets-helper without Composer

On this page you can find all versions of the php package reandimo/google-sheets-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package google-sheets-helper

# PHP Google Sheets Helper ### A powerful, elegant wrapper around Google Sheets API for PHP [![Latest Stable Version](https://img.shields.io/packagist/v/reandimo/google-sheets-helper?style=for-the-badge&color=blue)](https://packagist.org/packages/reandimo/google-sheets-helper) [![License](https://img.shields.io/packagist/l/reandimo/google-sheets-helper?style=for-the-badge&color=green)](https://packagist.org/packages/reandimo/google-sheets-helper) [![PHP Version](https://img.shields.io/packagist/dependency-v/reandimo/google-sheets-helper/php?style=for-the-badge&color=purple)](https://packagist.org/packages/reandimo/google-sheets-helper) [![Downloads](https://img.shields.io/packagist/dt/reandimo/google-sheets-helper?style=for-the-badge&color=orange)](https://packagist.org/packages/reandimo/google-sheets-helper) [Installation](#-installation) • [Quick Start](#-quick-start) • [API Reference](#-api-reference) • [Tips](#-tips) • [License](#-license)

Stop wrestling with the verbose Google Sheets API. This library wraps the official Google APIs Client Library for PHP into a clean, fluent interface so you can read, write, and manage spreadsheets in just a few lines of code.

Features

Feature Description
Read get() getSingleCellValue() findCellByValue() Fetch ranges, single cells, or search by value
Write appendSingleRow() append() updateSingleCell() update() Append rows, update cells or entire ranges
Sheets addWorksheet() duplicateWorksheet() renameWorksheet() deleteWorksheet() Full worksheet lifecycle management
Style colorRange() clearRange() Color cells and clear data
Manage create() getSpreadsheetWorksheets() Create spreadsheets and list worksheets

Requirements


Installation


Credentials Setup

The library authenticates using two files: credentials.json (from Google Cloud Console) and token.json (generated on first auth).

Generate token.json by running from your project root:

Follow the interactive steps — this only needs to be done once.

See it in action


Quick Start

You can also pass credential paths directly to the constructor:


API Reference

Reading Data

get() — Get values from a range

getSingleCellValue(string $cell) — Get a single cell value

findCellByValue(string $searchValue) — Search for a value


Writing Data

appendSingleRow(array $row) — Append one row

append(array $rows) — Append multiple rows

updateSingleCell(string $cell, mixed $value) — Update one cell

update(array $values) — Update a range


Worksheet Management

getSpreadsheetWorksheets() — List all worksheets

addWorksheet(string $title, int $rows, int $cols) — Create a new worksheet

duplicateWorksheet(string $newName) — Duplicate a worksheet

renameWorksheet(string $oldName, string $newName) — Rename a worksheet

deleteWorksheet(string $name) — Delete a worksheet


Styling & Utilities

colorRange(array $rgb) — Set background color

clearRange() — Clear all values in a range

create(string $title) — Create a new spreadsheet

Helper::getColumnLettersIndex(string $letters) — Column letter to index


Tips

Blank cells on insert/update: Use the constant Google_Model::NULL_VALUE to represent an empty cell.

Multiple sheet instances: Create as many Helper instances as you need to work with different spreadsheets or worksheets simultaneously.


License

MIT License. See LICENSE for details.

Questions & Issues

Found a bug or have a suggestion? Open an issue.

Author

Renan Diaz — Working with PHP since 2017 & Google's API since 2019.


All versions of google-sheets-helper with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
google/apiclient Version ^2.12
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package reandimo/google-sheets-helper contains the following files

Loading the files please wait ...