rhincodon/laravel-eloquent-spreadsheets

Sync Eloquent models with google spreadsheets
89 9
Install
composer require rhincodon/laravel-eloquent-spreadsheets
Latest Version:0.1.5
PHP:^7.0
Laravel:5
License:MIT
Last Updated:Aug 13, 2019
Links: GitHub  ·  Packagist
Maintainer: Rhincodon

Laravel Eloquent sync with Google Spreadsheets

Latest Version on Packagist Software License StyleCI

Fast Preview:

Preview

Installation

Via Composer:

$ composer require rhincodon/laravel-eloquent-spreadsheets

Register Service Provider in config/app.php:

Rhinodontypicus\EloquentSpreadsheets\EloquentSpreadsheetsServiceProvider::class,

Publish config:

php artisan vendor:publish --provider="Rhinodontypicus\EloquentSpreadsheets\EloquentSpreadsheetsServiceProvider" --tag="config"

Fetch Google Credentials

In Google Console create Service Account:

Step 1:

Step 1

Step 2:

Step 2

After pressing Create it will give you credentials file, which you can use in your project. Just save it somewhere in storage.

You also need to give access to spreadsheets that will be used to that service Account. Just copy client_email from credentials file, and use it to give access.

Usage

To start use package you need to specify array of models that will be synced in config file. It is a self-explainable config.

For now is working add, update, delete actions from app to spreadsheet. And update action from spreadsheet to app. All actions processed in queue.

If you want sync(only update action work) data back to app from spreadsheet, schedule following command:

$schedule->command('eloquent-spreadsheets:sync')->hourly();

Roadmap

  • Tests

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

sofa/hookable

Laravel Eloquent hooks system.

2,047,024 65
volosyuk/simple-eloquent

Adaptation of eloquent for retrieving its attributes

116,877 55
gzero/eloquent-tree

Eloquent Tree is a tree model for Laravel Eloquent ORM.

59,422 131
martinbean/laravel-sluggable-trait

A trait you can apply to Eloquent models to have slugs automatically generated o...

49,105 24
isswp101/elasticsearch-eloquent

Elasticsearch functionality like Laravel Eloquent models.

25,142 112

Version History

Version Released PHP Laravel License
0.1.5 ^7.0 ~5.3.0|~5.4.0 MIT
0.1.4 ^7.0 ~5.3.0 MIT
0.1.3 ^7.0 ~5.3.0 MIT
0.1.2 ^7.0 ~5.3.0 MIT
0.1.1 ^7.0 ~5.3.0 MIT