Download the PHP
package survos/google-sheets-bundle without Composer
On this page you can find all versions of the php package
survos/google-sheets-bundle. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Save your client secret file as 'client_secret.json' in your project.
Add the client secret file location, project application name and credential location in the Symfony config file
Your credentials will be created by the bundle once you set the file location in the bundle.
Default location: '/Credentials/sheets.googleapis.com.json'
Create the access token
Create the access token for google api.
Execute the service via the command line.
The service will provide you the link to get a verification code.
Copy the verification code from the link then enter it in the command line.
Inputs
id: Spreadsheets id
title: sheet(tab) title
header: number of rows for header.
data: 2 dimensional array for grid data.
Methods
SETUP(Common for all methods).
Inject GoogleSheetsApiService or obtain it from the container.
ex) Set up an api client with the spreadsheets id that you want to manage.
GET
Get an existing spreadsheets
CREATE
Create the new sheet in Google Spreadsheets.
Return: Number of data rows that are inserted to the new sheet.
If you call the function without data, it will create an empty sheet.
ex) Create the new sheet with data
UPDATE
Update the existing spreadsheets sheet.
Return: Number of data rows that are updated to the sheet.
If you wants to update only cell values, not the header, define number of rows for the header.
ex) Update grid data values only.
CLEAR
Clear the entire sheet values.
Return: number of rows that are cleared.
DELETE
Delete the existing sheet in the spreadsheets.
Return: Boolean
Example
Create the new sheet with header then update it with data
All versions of google-sheets-bundle with dependencies
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package survos/google-sheets-bundle contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.