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
Apiclient Services

Apiclient Services Laravel Package

google/apiclient-services

Auto-generated Google API service definitions for the Google API PHP Client. Updated daily to reflect API changes and tagged weekly. Install via Composer with google/apiclient to access many Google services from PHP.

View on GitHub
Deep Wiki
Context7

google/apiclient-services provides the generated service definitions for Google APIs used by the Google API PHP Client. It’s updated daily to reflect new API changes and tagged weekly, so you can stay current while relying on Composer-managed releases.

Before installing, check Google’s recommended Google Cloud PHP packages for Cloud-specific APIs; otherwise, use this library alongside the core client to access a wide range of Google services.

  • Generated PHP classes for Google API services and resources
  • Installs via Composer as part of google/apiclient
  • Daily updates with new API changes; weekly tags for releases
  • Centralized reference docs for available APIs and usage
  • Compatible with the official Google API PHP Client releases
Frequently asked questions about Apiclient Services
How do I install google/apiclient-services in a Laravel project?
Install via Composer by requiring `google/apiclient` as a dependency, which pulls `google/apiclient-services` transitively. Run `composer require google/apiclient` in your project root. The package is designed to work alongside the main Google API PHP Client library, so no additional steps are needed for basic usage.
Does this package support Laravel’s service providers or config files?
No, this package is a low-level library focused on API client classes and lacks Laravel-specific abstractions like service providers or config files. You’ll need to manually configure OAuth2 credentials and service instances in your Laravel app, typically via the `Google_Client` class from `google/apiclient`.
Which Laravel versions are compatible with google/apiclient-services?
This package has no Laravel-specific dependencies, so it works with any Laravel version (5.5+) as long as your PHP version (7.4+) and Composer meet the [Google API PHP Client requirements](https://github.com/googleapis/google-api-php-client#requirements). Test thoroughly in your target Laravel environment, as some APIs may require additional PHP extensions.
Can I use this for Google Cloud services like Firestore or Pub/Sub?
No, this package is optimized for Google Workspace APIs (e.g., Drive, Calendar, Gmail). For Google Cloud services like Firestore or Pub/Sub, use the [dedicated Google Cloud PHP packages](https://cloud.google.com/php/docs/reference) instead, as they offer specialized SDKs with better Laravel integration and support.
How often are the API service classes updated in this package?
The package is updated daily with new API changes and tagged weekly. This ensures you always have the latest service definitions for supported Google APIs. Check the [release notes](https://github.com/googleapis/google-api-php-client-services/releases) for version-specific updates.
What’s the best way to handle OAuth2 authentication in Laravel?
Use the `Google_Client` class from `google/apiclient` to configure OAuth2 credentials. Store your client ID/secret in Laravel’s `.env` file, then initialize the client in a service class or controller. Example: `$client = new Google_Client(['client_id' => env('GOOGLE_CLIENT_ID'), 'client_secret' => env('GOOGLE_CLIENT_SECRET')]);`
Are there Laravel-specific wrappers or packages for this library?
No official Laravel wrappers exist for this package, but you can create a custom facade or service provider to streamline usage. Alternatively, explore community packages like `spatie/google-drive-laravel` for Drive-specific integrations, though they may not cover all APIs in this library.
How do I test API calls in a Laravel test environment?
Mock the `Google_Client` and service classes using Laravel’s `Mockery` or PHPUnit’s `getMockBuilder`. For example, mock the `Google_Service_Drive` class to return fake responses in unit tests. Avoid hitting real APIs in tests to prevent rate limits or credential leaks.
What are the production concerns with this package?
Monitor API rate limits and quota usage, as Google APIs enforce strict limits. Cache responses where possible to reduce costs, and use Laravel’s queue system for long-running API operations. Also, rotate OAuth2 credentials periodically for security.
What alternatives exist for Google API integrations in Laravel?
For Google Workspace APIs, this package is the most direct option. For Google Cloud services, use the [official Cloud PHP libraries](https://cloud.google.com/php/docs/reference). If you need a more Laravel-friendly approach, consider packages like `laravel-google-api` (third-party) or build a custom wrapper around this library.
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport