PHP code example of dannsbass / google-sheets

1. Go to this page and download the library: Download dannsbass/google-sheets 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/ */

    

dannsbass / google-sheets example snippets






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

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