承接 dannsbass/google-sheets 相关项目开发

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

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

dannsbass/google-sheets

最新稳定版本:v1.0.1

Composer 安装命令:

composer require dannsbass/google-sheets

包简介

Manipulate Google Sheets using PHP

README 文档

README

Examples of Google Sheets API implementations using PHP

Requirements

  1. PHP 7.4+
  2. a single file named credentials.json from Google

Installation

Using Composer

To install, just add the following script to your composer.json file:

{
    "require": {
        "php": ">=8.0.0",
        "dannsbass/google-sheets": "*"
    },
    "scripts": {
        "pre-autoload-dump": "Google\\Task\\Composer::cleanup"
    },
    "extra": {
        "google/apiclient-services": [
            "Sheets"
        ]
    }
}

or by running the following command:

composer require dannsbass/google-sheets

Composer installs autoloader at ./vendor/autoloader.php. to include the library in your script, add:

require_once 'vendor/autoload.php';

Install from source

Download this library from Github:

git clone https://github.com/dannsbass/google-sheets
cd google-sheets

Then include src/Dannsheet.php in your script:

require_once 'src/Dannsheet.php';

Usage

Creating a simple configuration

<?php

require_once './src/Dannsheet.php';

Dannsheet::setCredentials(__DIR__ . '/path/to/credentials.json');
Dannsheet::setSpreasheetId(YOUR_SPREADSHEET_ID); // from Google

See examples/ directory for more details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-11