Download the PHP package samuelvi/spreadsheet-translator-provider-googledriveauth without Composer
On this page you can find all versions of the php package samuelvi/spreadsheet-translator-provider-googledriveauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download samuelvi/spreadsheet-translator-provider-googledriveauth
More information about samuelvi/spreadsheet-translator-provider-googledriveauth
Files in samuelvi/spreadsheet-translator-provider-googledriveauth
Package spreadsheet-translator-provider-googledriveauth
Short Description Spreadsheet Translator - Google Drive With Authentication Provider
License MIT
Informations about the package spreadsheet-translator-provider-googledriveauth
Spreadsheet Translator Google Drive Provider with Authentication
This package retrieves protected spreadsheet documents from Google Drive with authentication support.
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
- PHP >= 8.4
- Composer
- Google Cloud Platform account with Drive API enabled
Installation
How to Create Google Drive Credentials
- Create a project at Google Cloud Console. You will need a Google account.
- Enable the Google Sheets API following the official guide
- Download the Client Configuration file (credentials.json) to a private folder
- 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
- Log into your Google account
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Google Sheets API and Google Drive API
- Create OAuth 2.0 credentials (Desktop app type recommended)
- Download the credentials JSON file
- Set up the configuration with the path to your credentials file
Usage
Development
Quick Start
Available Make Commands
make install- Install all dependenciesmake update- Update all dependenciesmake test- Run testsmake test-coverage- Run tests with coverage reportmake rector- Apply Rector refactoringmake rector-dry- Check Rector suggestions without applyingmake clean- Remove vendor and cache directoriesmake ci- Run all CI checks (rector + tests)
Testing
The project includes comprehensive unit tests. Run them using:
Code Quality
This project uses Rector for automated refactoring and code quality improvements:
Related Projects
- Spreadsheet Translator Core - Core library
- Spreadsheet Translator Symfony Bundle - Symfony integration
Contributing
We welcome contributions! Please feel free to submit pull requests or open issues for bugs and feature requests.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Run tests and code quality checks (
make ci) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
All contributors must abide by our code of conduct.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Samuel Vicent - [email protected]
All versions of spreadsheet-translator-provider-googledriveauth with dependencies
google/apiclient Version ^2.0
phpoffice/phpspreadsheet Version ^3.0
php Version >=8.4
guzzlehttp/guzzle Version ^7.7
guzzlehttp/promises Version ^2.0