Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

Getting data from google spreadsheet as json

$
0
0
Hi,

I needed to get data from google spreadsheet as a json and it came out it's not that simple. I've made an app to do exactly that. Maybe you want to use it as well, if you do I've made a few lines of introduction:

In many simple projects you don't need to configure database and setup entire backend. Instead you can use google spreadsheet, your clients already know how to use it. http://www.sheetdb.io - it's an API for your google spreadsheet documents. I've also made composer library https://github.com/sheetdb/sheetdb-php - setup that environment is 1 line in terminal and 3 lines in code editor.

Code:
composer require sheetdb/sheetdb-php


+

PHP Code:
use SheetDB\SheetDB;

$sheetdb = new SheetDB('58f61be4dda40');
$response $sheetdb->get(); 

Let me know if php library is ok? I could make one especially for codeigniter but I don't think it's necessary.

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>