Authorize the email address, which is found as "client_email" in key file, to read and edit.
Save the file ID from address bar.
composer require mitni/laravel-google-spreadsheet
This requires "google/apiclient" package, but that should be included by default.
3.2 Access by PHP
useMitni\Google\GoogleSpreadsheet;$client=GoogleSpreadsheet::getClient("the/path/to/credential.json");// Get the file by file ID$file=$client->file("XXXxxxXXXXxxxXXXX");// Get the sheet by title$sheet=$file->sheet("Sheet1");// Flush all rows in the sheetvar_dump($sheet->items);