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 Bundle Laravel Package

double-star-systems/google-api-bundle

View on GitHub
Deep Wiki
Context7

Google API Client Symfony BUndle

This project provides a simple symfony bundle to provide a configurable Google API Client as symfony service.

Usage

Installation

Include this project in your Composer installation.

composer require double-star-systems/google-api-bundle

Configuration

The module will work without singificant configuration. At minimum, you must atleast create the google api credentials.json. This can either be placed in the default location of config/google_api_bundle/credentials.json or in a custom location, which will need to be configured in the application.

The following custom configuration can be added to your application.

# config/packages/google_api.yaml

google_api:
    scopes:
        - https://www.googleapis.com/auth/drive
    credentials_file: `path/to/your/credentials.json`
    token_file: `path/to/your/tokens.json`
    application_name: 'Your Awesome App Name!'

Using the Service

To use the serivce in your app, you can simply use the standard google api class within your project, and have a fully configured base api client isntance.


use Google\Client;

class ExampleController extends AbstractController
{
    #[Route('/example, 'example')]
    public function example(Client $client)
    {
        // use the $client instance as normal.
    }
}

Requirements

This project is cofigured to be compatible with Symfony 4+ and the Google PHP API Client library 2.0.

Support

This project is developed by Double Star Systems. For questions about project support or to report bugs, please open an issue on GitHub

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.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor