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
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
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-11