You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This library provides a simple interface to the Google Spreadsheet API.
4
4
5
5
There are a couple of important things to note.
6
6
7
-
* This library requires a valid OAuth access token to work but does not provide any means of generating one. The [Google APIs Client Library for PHP](https://github.com/google/google-api-php-client) has all the functionality required for for generating and refreshing tokens so it would have been a waste of time duplicating the official google library.
7
+
* This library requires a valid OAuth access token to work but does not provide any means of generating one. The [Google APIs Client Library for PHP](https://github.com/google/google-api-php-client) has all the functionality required for for generating and refreshing tokens so it would have been a waste of time duplicating the official google library. I have created a demo application which shows how to generate an OAuth token [here](https://github.com/asimlqt/php-google-oauth).
8
8
* You can not create spreadsheets using this (PHP Google Spreadsheet Client) library, as creating spreadsheets is not part of the Spreadsheet API and the functionality already exists in the official Google Client Library.
9
9
10
10
I strongly recommend you read through the [official Google Spreadsheet API documentation](https://developers.google.com/google-apps/spreadsheets) to get a grasp of the concepts.
@@ -20,7 +20,7 @@ Using [composer](https://getcomposer.org/) is the recommended way to install it.
20
20
```json
21
21
{
22
22
"require": {
23
-
"asimlqt/php-google-spreadsheet-client": "2.2.*"
23
+
"asimlqt/php-google-spreadsheet-client": "2.3.*"
24
24
}
25
25
}
26
26
```
@@ -131,6 +131,17 @@ foreach ($listFeed->getEntries() as $entry) {
131
131
132
132
The getValues() method returns an associative array where the keys are the column names and the values are the cell content.
133
133
134
+
> Note: The Google api converts the column headers to lower case so the column headings might not appear to be the same as what you see in Google Drive using your browser.
135
+
136
+
> Note: If there is data for a particular row which does not have a column header then Google randomly generates a header and as far as i know it always begins with an underscore. Bear in mind that this is not generated by this library.
137
+
138
+
You can also sort and filter the data so you only retrieve what is required, this is expecially useful for large worksheets.
To find out all the available options visit [https://developers.google.com/google-apps/spreadsheets/#sorting_rows](https://developers.google.com/google-apps/spreadsheets/#sorting_rows).
0 commit comments