Download the PHP package holoolaz/sheets2api without Composer
On this page you can find all versions of the php package holoolaz/sheets2api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download holoolaz/sheets2api
More information about holoolaz/sheets2api
Files in holoolaz/sheets2api
Package sheets2api
Short Description Turn Google Sheets into JSON API and excel files
License MIT
Homepage https://github.com/holoolaz/sheets2api
Informations about the package sheets2api
sheets2api Library
Turn Google Sheets to JSON API and excel files
Fast Links
- Introduction
- Installation
- Usage
Introduction
sheets2api Library has been made by Holoola-z Company, please do not edit or abuse the usage of this Library.
sheets2api Library is mainly used to convert Google Sheets to JSON API so that it can be used in CMS, wordpress, custom websites and more..., You can simply display a Google Spreadsheet in a webpage as json file.
Installation
The best way to install this Library is through composer:
Usage
In your file inlude the file and use the namespace of the main class like this:
Let's use our api id '617989cb51352':
Get All Spreadsheet Data
Important: Each time you use this api when calling Spreadsheet() then you're actually selecting the first sheet like the example below:
Important: Now let's select a specific Sheet to get data from:
Optional Parameters
Or
Note: Same thing goes to all other api call class methods.
Get Spreadsheet Cells
Get Spreadsheet Rows Count
Get Spreadsheet Column Names (Keys)
Search Entire Spreadsheet by Values
Note
This method can take additional parameters:
- limit
- offset
- orderBy
- order
- caseSensitive // This parameter is of type string so be sure to use quotation like: caseSensitive => 'true' // can take (true/false)
- and more...
Search Entire Spreadsheet by Condition
Note
This method can take additional parameters:
- limit
- offset
- orderBy
- order
- caseSensitive
- and more...
List Spreadsheet Sheets (Tabs)
Get Spreadsheet Name
List All Spreadsheets
Clear Spreadsheet Sheet (Tab)
Clear Spreadsheet Sheet (Tab)
Here we're copying data to this Spreadsheet id.
Delete Spreadsheet Row
Here we removed the row that has column name Id and value of 3.
Note: Calling this method can delete multiple rows at once, make sure that column name and value are unique.
Important: Do not use spaces in the condition parameter like this won't work.
Update Spreadsheet Row
Update Spreadsheet Multiple Rows
Create Spreadsheet Sheet (Tab)
Note: Here we created a new Sheet called NEW_SHEET.
Delete Spreadsheet Sheets (Tabs)
Note: Here we're deleting only Sheet23, but what if we wanted to delete 3 more sheets.
That's it, we deleted 3 Sheets instead of 1.
Import HTML Table into Sheet (TAB)
Import HTML List into Sheet (TAB)
Important: You can always use Our API Documentation for more step by step guide.
All versions of sheets2api with dependencies
ext-curl Version *
ext-json Version *