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 Spreadsheets API Helper

Latest Stable Version Total Downloads License PHP Version Require

A comprehensive helper library that encapsulates the Google APIs Client Library for PHP for easy Google Sheets API integration. This library simplifies common operations and provides a clean interface for working with Google Spreadsheets.

Table of Contents

Requirements

Installation

Install via Composer:

Credentials Setup

1. Google Cloud Platform Setup

  1. Create a new project in Google Cloud Console
  2. Enable the Google Sheets API
  3. Create credentials (Service Account or OAuth 2.0)
  4. Download the credentials.json file

2. Generate Token File

Use the included authentication script:

Follow the interactive prompts to generate your token.json file.

Authentication Process

Usage

Creating Instances

Method 1: Environment Variables (Recommended)

Method 2: Direct File Paths

Multiple Instances

Reading Data

Get Values from a Range

Get Single Cell Value

Find Cell by Value

Writing Data

Append Single Row

Append Multiple Rows

Handle Empty Cells

Updating Data

Update Single Cell

Update Range

Worksheet Management

Get All Worksheets

Duplicate Worksheet

Delete Worksheet

Rename Worksheet

Add New Worksheet

Formatting

Utility Functions

Create New Spreadsheet

Column Index Calculation

Error Handling

Always wrap your API calls in try-catch blocks to handle potential errors gracefully:

Best Practices

  1. Use Environment Variables: Store credentials securely using environment variables
  2. Error Handling: Always implement proper error handling
  3. Batch Operations: Use batch operations when updating multiple cells
  4. Rate Limiting: Be mindful of Google's API rate limits
  5. Caching: Cache frequently accessed data when possible
  6. Validation: Validate data before sending to the API

Troubleshooting

Common Issues

Authentication Errors

Permission Errors

Rate Limiting

Data Format Issues

License

This package is open source and released under the MIT License. See the LICENSE file for details.

Support

Contributing

We welcome contributions! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Who's Behind

Renan Diaz - PHP developer since 2017, Google API specialist since 2019.

Renan Diaz, i'm dealing with PHP since 2017 & Google's API since 2019. Feel free to write me to my email (Please don't send any multi-level crap).


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 ....