Download the PHP package exs/googlesheets-bundle without Composer

On this page you can find all versions of the php package exs/googlesheets-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

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.
Please rate this library. Is it a good library?

Informations about the package googlesheets-bundle

EXS-GoogleSheetsBundle

Very simple wrapper for Google sheets integration

What is this bundle doing ?

This bundle provides basic Google API SpreadSheets Sheets Service methods as Symfony services.
Methods: Get|Create|Update|Clear|Delete

Installing the # EXS-GoogleSheetsBundle in a Symfony project

Edit composer.json file:

Save the file and have composer require the project via the command line:

Update the app/AppKernel.php

Usage

Configuration

  1. Set your Google project and get the client secret file.
    Click here to obtain your client secret and set project application name

  2. Save your client secret file as 'client_secret.json' in your project.

  3. Add the client secret file location, project application name and credential location in the Symfony config file

Your credentials will be create 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.

  1. Execute the service via the command line.
    The service will provide you the link to get a verification code.

  2. 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

Contributing

Anyone and everyone is welcome to contribute.

If you have any questions or suggestions please let us know.


All versions of googlesheets-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.9
symfony/symfony Version ^2.7
google/apiclient Version ^2.0
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 exs/googlesheets-bundle contains the following files

Loading the files please wait ....