Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Google Api Laravel Package

tomshaw/google-api

Laravel Google OAuth 2.0 service client with configurable token storage (DB or custom), published config, and migrations. Integrates google/apiclient-services and supports Composer cleanup to include only the Google APIs you need (e.g., Gmail, Calendar).

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Buy – This package eliminates the need to build a custom OAuth2 integration for Google APIs, reducing development time and maintenance overhead. It provides a standardized, well-documented solution for Laravel applications.
  • Feature Expansion: Enables integration with Google Calendar, Gmail, Drive, and Books APIs, unlocking use cases like:
    • Calendar sync for scheduling tools (e.g., booking systems, event management).
    • Email automation (e.g., sending transactional emails via Gmail API with Laravel Mailables).
    • File storage (e.g., user uploads to Google Drive as a backup or primary storage).
    • Content enrichment (e.g., fetching book metadata for e-commerce or library apps).
  • Roadmap Prioritization:
    • MVP Acceleration: Quickly add Google API functionality without reinventing OAuth2 flows.
    • Scalability: Supports offline access tokens and custom storage adapters (e.g., Redis, database), critical for production-grade apps.
    • Compliance: Pre-configured scopes and prompts simplify adherence to Google’s OAuth2 best practices.
  • Use Cases:
    • SaaS Platforms: Integrate Google services for user authentication, data sync, or third-party extensions.
    • Enterprise Tools: Automate workflows (e.g., syncing CRM data with Google Calendar).
    • Educational Apps: Leverage Google Books API for content discovery.
    • Media/Creative Tools: Manage Drive files for collaborative projects.

When to Consider This Package

  • Adopt This Package If:

    • Your Laravel app (v13+) requires Google API integration (OAuth2) with minimal setup.
    • You need pre-built adapters for Calendar, Gmail, Drive, or Books (no need to write boilerplate API clients).
    • Your team lacks expertise in OAuth2 flows or Google API SDKs.
    • You want flexible token storage (supports database, files, or custom adapters).
    • You’re targeting PHP 8.5+ and can commit to Laravel 13’s ecosystem.
  • Look Elsewhere If:

    • You need Google APIs not covered (e.g., YouTube, Maps, Analytics). This package only includes Calendar, Gmail, Drive, and Books.
    • Your app uses Laravel <13 or PHP <8.5. Downgrade support is unlikely.
    • You require advanced customization beyond the provided adapters (e.g., real-time API polling).
    • You’re building a serverless/headless app where OAuth2 redirects (e.g., createAuthUrl) are impractical.
    • You need multi-cloud support (e.g., Azure AD, AWS Cognito). This is Google-specific.

How to Pitch It (Stakeholders)

For Executives:

"This package lets us integrate Google APIs into our Laravel app in days, not months—saving [X] dev weeks and reducing technical debt. It handles OAuth2 securely, supports offline access for automation, and includes adapters for Calendar, Gmail, and Drive, which we can use for [specific use case, e.g., ‘syncing user events’ or ‘enabling file uploads’]. The MIT license and active maintenance (last release: May 2026) make it a low-risk choice. We’ll avoid reinventing OAuth2 wheels while unlocking Google’s ecosystem for [revenue/UX/feature] goals."

For Engineering:

*"This is a batteries-included Google API client for Laravel 13:

  • OAuth2 Done Right: Pre-configured scopes, prompts, and token storage (database/Redis/files).
  • No Bloat: Only loads the Google APIs you specify (e.g., Calendar + Gmail) via composer.json.
  • Fluent Adapters: Clean interfaces for Calendar (CRUD events), Gmail (Laravel Mailables), Drive (file ops), and Books (search).
  • Extensible: Swap token storage or add custom APIs by implementing StorageAdapterInterface.
  • Future-Proof: PHP 8.5/Laravel 13 support, active development (May 2026 release).

Tradeoff: Limited to Google APIs, but saves ~80% of the dev time vs. rolling our own client. Recommended for [use case]."*

For Security/Compliance:

*"The package enforces Google’s OAuth2 best practices out of the box:

  • Offline access tokens (access_type: offline) for long-lived credentials.
  • Configurable scopes to limit permissions (e.g., calendar.events only).
  • Token storage is customizable (default: database) to meet our audit requirements.
  • MIT license ensures no vendor lock-in. We’ll need to review the [Google API scopes] we request in config/google.php to align with our data policies."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle
dmstr/api-platform-utils-bundle
dmstr/api-configuration-bundle
chrisdev/ux-components
baks-dev/finances
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle