定制 beyerz/google-api-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

beyerz/google-api-bundle

最新稳定版本:1.0.7

Composer 安装命令:

composer require beyerz/google-api-bundle

包简介

Symfony bundle to wrap the google api

README 文档

README

Minimum PHP Version

GoogleApiBundle

Easy Integration for Symfony2 projects requiring Google PHP SDK

Installation

Composer

composer require beyerz/google-api-bundle

Application Kernel

Add BeyerzGoogleApiBundle to the registerBundles() method of your application kernel:

public function registerBundles()
{
    return array(
        new Beyerz\GoogleApiBundle\BeyerzGoogleApiBundle(),
    );
}

Config

Enable loading of the OGP service and setting default values by adding the following to the application's config.yml file:

A Base and facebook library are currently supported, but you can add as many libraries with as many default values that you like

#BeyerzGoogleApiBundle
beyerz_google_api:
  application_name: 'Sample Application Name'
  credentials_manager: 'Beyerz\GoogleApiBundle\Manager\CredentialsManager'
  client_secret_path: '/Resources/client_secret.json'
  scopes:
    - 'https://www.googleapis.com/auth/gmail.readonly'
    - 'https://www.googleapis.com/auth/gmail.send'
    - 'https://www.googleapis.com/auth/plus.login'
    - 'https://www.googleapis.com/auth/contacts'
    - 'https://www.googleapis.com/auth/contacts.readonly'
    - 'https://www.googleapis.com/auth/plus.login'
    - 'https://www.googleapis.com/auth/plus.me'
    - 'https://www.googleapis.com/auth/userinfo.email'
    - 'https://www.googleapis.com/auth/userinfo.profile'
  services:
    gmail:
      access_type: "offline"
    plus:
      access_type: "offline"
    people:
      access_type: "offline"
    oauth2:
      access_type: "offline"

Documentation

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-28