PHP code example of egapool / instant-googlespreadsheet-output

1. Go to this page and download the library: Download egapool/instant-googlespreadsheet-output 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/ */

    

egapool / instant-googlespreadsheet-output example snippets




stantGoogleSpreadSheetOutput\Outputer;

$data = [
	['日','月','火','水','木','金','土'],
	['あれ','これ','それ','これ?','どれ?','それ','えっ'],
];

// create instanse
$outputer = new Outputer('/path/to/youre/spreadsheet-xxxxxxxxx.json');

// create new SpreadSheet
$outputer
	->creatSheet('シートのタイトル') // create new SpreadSheet with title word
	->write($data) // insert data
	->attatchAuthToUser('test[at]gmail.com'); // permit others to access this sheet

echo $outputer->spreadsheet->spreadsheetUrl;