PHPackages                             atico/spreadsheet-translator-provider-googledriveauth - 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. atico/spreadsheet-translator-provider-googledriveauth

Abandoned → [samuelvi/spreadsheet-translator-provider-googledriveauth](/?search=samuelvi%2Fspreadsheet-translator-provider-googledriveauth)Library

atico/spreadsheet-translator-provider-googledriveauth
=====================================================

Spreadsheet Translator - Google Drive With Authentication Provider

v8.4.0(6mo ago)02.5k1MITPHPPHP &gt;=8.4CI passing

Since May 29Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/samuelvi/spreadsheet-translator-provider-googledriveauth)[ Packagist](https://packagist.org/packages/atico/spreadsheet-translator-provider-googledriveauth)[ RSS](/packages/atico-spreadsheet-translator-provider-googledriveauth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (7)Versions (13)Used By (0)

Spreadsheet Translator Google Drive Provider with Authentication
================================================================

[](#spreadsheet-translator-google-drive-provider-with-authentication)

[![Tests](https://github.com/samuelvi/spreadsheet-translator-provider-googledriveauth/workflows/Tests/badge.svg)](https://github.com/samuelvi/spreadsheet-translator-provider-googledriveauth/actions)[![PHP Version](https://camo.githubusercontent.com/9c2f8ad80d34105266a94c4c06234f8ed18c968d3595039c2d9a7becd1e71c8b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e342d626c75652e737667)](https://www.php.net/)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

This package retrieves protected spreadsheet documents from Google Drive with authentication support.

Features
--------

[](#features)

- 🔐 OAuth2 authentication with Google Drive API
- 📊 Support for Google Sheets spreadsheets
- 🔄 Automatic token refresh
- 📝 Multiple output formats (XLSX, Matrix)
- 🧪 Comprehensive test coverage
- 🚀 PHP 8.4 ready with modern syntax

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

[](#requirements)

- PHP &gt;= 8.4
- Composer
- Google Cloud Platform account with Drive API enabled

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

[](#installation)

```
composer require samuelvi/spreadsheet-translator-provider-googledriveauth
```

How to Create Google Drive Credentials
--------------------------------------

[](#how-to-create-google-drive-credentials)

1. **Create a project** at [Google Cloud Console](https://console.developers.google.com). You will need a Google account.
2. **Enable the Google Sheets API** following the [official guide](https://developers.google.com/sheets/api/quickstart/php)
3. **Download the Client Configuration file** (credentials.json) to a private folder
4. **First-time authentication**: When running the application for the first time, a URL will be displayed. Open it in your browser, grant permissions, and paste the authorization code back into the terminal.

### Detailed Setup Steps

[](#detailed-setup-steps)

1. Log into your Google account
2. Go to [Google Cloud Console](https://console.developers.google.com)
3. Create a new project or select an existing one
4. Enable the Google Sheets API and Google Drive API
5. Create OAuth 2.0 credentials (Desktop app type recommended)
6. Download the credentials JSON file
7. Set up the configuration with the path to your credentials file

Usage
-----

[](#usage)

```
use Atico\SpreadsheetTranslator\Core\Configuration\Configuration;
use Atico\SpreadsheetTranslator\Provider\GoogleDriveAuth\GoogleDriveAuthProvider;

$configuration = new Configuration([
    'application_name' => 'My Application',
    'credentials_path' => '/path/to/credentials.json',
    'client_secret_path' => '/path/to/token.json',
    'source_resource' => 'https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit',
    'format' => 'xlsx',
    'temp_local_source_file' => '/tmp/output.xlsx'
]);

$provider = new GoogleDriveAuthProvider($configuration);
$resource = $provider->handleSourceResource();
```

Development
-----------

[](#development)

### Quick Start

[](#quick-start)

```
# Install dependencies
make install

# Run tests
make test

# Run Rector code quality checks
make rector-dry

# Run all CI checks
make ci
```

### Available Make Commands

[](#available-make-commands)

- `make install` - Install all dependencies
- `make update` - Update all dependencies
- `make test` - Run tests
- `make test-coverage` - Run tests with coverage report
- `make rector` - Apply Rector refactoring
- `make rector-dry` - Check Rector suggestions without applying
- `make clean` - Remove vendor and cache directories
- `make ci` - Run all CI checks (rector + tests)

Testing
-------

[](#testing)

The project includes comprehensive unit tests. Run them using:

```
make test

# Or with coverage
make test-coverage
```

Code Quality
------------

[](#code-quality)

This project uses Rector for automated refactoring and code quality improvements:

```
# Check what would be changed
make rector-dry

# Apply changes
make rector
```

Related Projects
----------------

[](#related-projects)

- [Spreadsheet Translator Core](https://github.com/samuelvi/spreadsheet-translator-core) - Core library
- [Spreadsheet Translator Symfony Bundle](https://github.com/samuelvi/spreadsheet-translator-symfony-bundle) - Symfony integration

Contributing
------------

[](#contributing)

We welcome contributions! Please feel free to submit pull requests or open issues for bugs and feature requests.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Run tests and code quality checks (`make ci`)
4. Commit your changes (`git commit -m 'Add amazing feature'`)
5. Push to the branch (`git push origin feature/amazing-feature`)
6. Open a Pull Request

All contributors must abide by our code of conduct.

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

Author
------

[](#author)

**Samuel Vicent** -

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance68

Regular maintenance activity

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 86.7% 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.

###  Release Activity

Cadence

Every ~247 days

Recently: every ~17 days

Total

12

Last Release

185d ago

Major Versions

1.0.5 → 6.02022-11-09

6.0 → 8.02025-09-02

PHP version history (3 changes)1.0.0PHP &gt;=5.5.9

8.0PHP &gt;=8.1

v8.4.0PHP &gt;=8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10146931?v=4)[Samuel Vicent](/maintainers/samuelvi)[@samuelvi](https://github.com/samuelvi)

---

Top Contributors

[![samuelvi](https://avatars.githubusercontent.com/u/10146931?v=4)](https://github.com/samuelvi "samuelvi (13 commits)")[![shakaran](https://avatars.githubusercontent.com/u/14254?v=4)](https://github.com/shakaran "shakaran (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisRector

### Embed Badge

![Health badge](/badges/atico-spreadsheet-translator-provider-googledriveauth/health.svg)

```
[![Health](https://phpackages.com/badges/atico-spreadsheet-translator-provider-googledriveauth/health.svg)](https://phpackages.com/packages/atico-spreadsheet-translator-provider-googledriveauth)
```

###  Alternatives

[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1225.0k10](/packages/fleetbase-core-api)[aliyun/aliyun-tablestore-sdk-php

Aliyun Tablestore SDK for PHP

3195.6k2](/packages/aliyun-aliyun-tablestore-sdk-php)

PHPackages © 2026

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