Download the PHP package laravel-studio/laravel-google-sheet-integration without Composer

On this page you can find all versions of the php package laravel-studio/laravel-google-sheet-integration. 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 laravel-google-sheet-integration

laravel-google-sheet-integration

Installation:

  1. composer require laravel-studio/laravel-google-sheet-integration

  2. Add this code under providers array

laravelstudio\laravelgooglesheetintegration\GoogleSheetServiceProvider::class,

Add this under aliases array of config > app.php

'GoogleSheet' => laravelstudio\laravelgooglesheetintegration\facades\googlesheet::class

  1. You have to add this in $routeMiddleware in Kernal.php

'googleAuth' => \laravelstudio\laravelgooglesheetintegration\middleware\googleAuth::class,

'checkUserAuth' => \laravelstudio\laravelgooglesheetintegration\middleware\checkUserAuth::class,

  1. Set GOOGLE_SHEET_RETURN_URL key value in .env file like :

GOOGLE_SHEET_RETURN_URL=http://localhost:8000/<your-callback-route>

  1. Run composer dump-autoload
  2. Run php artisan vendor:publish
  3. Run php artisan migrate

Use:

Your google auth config file will be under config > googlesheet.php. Place your auth credentials here.

Packages views will be under resources > views > vendor > googlesheet, make your customization here.


Note: if you are not going to use package’s layout page, then make sure this scripts are included at your main layout or copy from package’s layout page.

Css File:

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">

<link rel="stylesheet" href="{{ asset('/vendor/googlesheet/css/custom.css') }}">

Js file:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" ></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>

<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

After including those scripts include @stack('google-drive-scripts') and @stack('auto-auth-script') at end of the script.


Show google sheet auth button To add google auth button use this in your controller file (make sure that you have looged in user of your application) return view('laravelgooglesheetintegration::signin');

Save or update google sheet data: use this facade in controller use GoogleSheet; then use this code: GoogleSheet::updatesettings($data);

Here is the sample data format:

Note: if u choose folder then it creates new sheet or if you choose existing file then it will be updated.


All versions of laravel-google-sheet-integration with dependencies

PHP Build Version
Package Version
Requires 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 laravel-studio/laravel-google-sheet-integration contains the following files

Loading the files please wait ....