dvlpm/google-api-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dvlpm/google-api-bundle

最新稳定版本:0.2.0

Composer 安装命令:

composer require dvlpm/google-api-bundle

包简介

Google API Client Symfony Bundle

README 文档

README

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

统计信息

  • 总下载量: 28
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-08-13