Download the PHP package amazingbv/laravel-google-sheets-database-driver without Composer

On this page you can find all versions of the php package amazingbv/laravel-google-sheets-database-driver. 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 laravel-google-sheets-database-driver

Laravel Google Sheets Database Driver

Latest Version on Packagist Tests Downloads

A Laravel database driver that uses a Google Sheets spreadsheet as its backing store.

This package lets you treat:

It is designed for lightweight back-office data, prototypes, operational tools, and integrations where a spreadsheet is more practical than a traditional database.

Features

Requirements

Installation

Laravel package discovery is enabled automatically.

Quick Start

Add the following to your .env:

Then run:

How It Maps To Google Sheets

The package also manages:

Service Account Setup

This package uses a Google service account for server-to-server access.

The JSON file referenced by GOOGLE_SHEETS_CREDENTIALS_PATH is the service account key file downloaded from Google Cloud. The package uses that file to authenticate against the Google Sheets API.

In practice:

  1. Create or choose a Google Cloud project.
  2. Enable the Google Sheets API for that project.
  3. Create a service account.
  4. Create and download a JSON key for that service account.
  5. Share your spreadsheet with the client_email from that JSON file, usually as Editor.
  6. Store the JSON file outside your repository and point GOOGLE_SHEETS_CREDENTIALS_PATH to it.

Useful official Google documentation:

Notes:

Usage

Query Builder

Eloquent

Schema

Supported Query Subset

The driver intentionally supports a practical subset instead of full SQL compatibility.

Supported:

Unsupported:

Migrations And Schema Behavior

This package tries to be migration-friendly for standard Laravel apps.

What it does:

What it does not do:

So if your migration contains:

the migration can still run, but Google Sheets will not enforce those guarantees.

Transactions

Laravel transaction calls are treated as no-op control flow.

That means:

Quota Handling

Google Sheets has strict API quotas. This driver includes a few protections:

If you still hit quotas:

Database Index Tab

The package maintains a visible first tab named Database Index.

It contains:

This makes the spreadsheet easier to use as a navigable “database”.

Operational Notes

Local Development With A Path Repository

If you want to test this package from a local checkout in another Laravel app:

Then run:

Limits

This is not a replacement for MySQL or PostgreSQL.

Use it when:

Do not use it when:

License

MIT


All versions of laravel-google-sheets-database-driver with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
google/apiclient Version ^2.18
illuminate/console Version >=12.0 <14.0
illuminate/database Version >=12.0 <14.0
illuminate/support Version >=12.0 <14.0
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 amazingbv/laravel-google-sheets-database-driver contains the following files

Loading the files please wait ...