PHP code example of jtrw / simple-google-sheet-reader
1. Go to this page and download the library: Download jtrw/simple-google-sheet-reader library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jtrw / simple-google-sheet-reader example snippets
$doc = new \Jtrw\SimpleGoogleSheet\Document($credentials);
$value = $doc->setSheet('sheet_name')->getValues('Name!A1:C');
print_r($value);
array(
array(
[0] => "Name",
[1] => "Email"
),
array(
[0] => "Joe",
[1] => "[email protected]"
),
)