承接 sergmoro1/yii2-google-spreadsheet 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sergmoro1/yii2-google-spreadsheet

Composer 安装命令:

composer require sergmoro1/yii2-google-spreadsheet

包简介

Access to Google SpreadSheet from Yii2 by Google REST API.

README 文档

README

Simple extension for getting list of user's spreadsheets and open selected spreadsheet in IFRAME.

Example of using Google REST API and OAuth2 authorization.

Installation

Register Google-project first

Follow the instructions - Setting up OAuth 2.0 .

Set up extension

$ composer require sergmoro1/yii2-google-spreadsheet "dev-master"

Usage

1.Copy model, controller and views from ./example to corresponding directories of your app. Change methords and actions or leave them as is.

2.Define constants in params file (for ex. in frontend/config/params.php).

<?php
return [
    'clientId' => '***',
    'clientSecret' => '***',
    // dev (for ex.)
    'redirectUri' => 'http://localhost/yoursite/frontend/web/google/oauth',
    // production
    //'redirectUri' => 'http://yoursite/google/oauth',
];

3.Declare Redirect Uri in your Google Project. For ex.

// dev
http://localhost/yousite/frontend/web/google/oauth2

// production
http://yoursiteDOTcom/google/oauth2

Result

Now you can view list of your spreadsheets, if you have them, by active Uri at the moment:

http://yoursite_or_localhost_path/google

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-26