One way to show the data to your client with read only(depends on you) access accessible through web/mobile without creating new interface. Google Sheet is one of the solutions you can pick. Google sheet provides security features, history etc.. which make stuffs easier.
Using GSHEET as a DB is probably not a good idea. This is just an experiment (You might lose your hair)
On this article I will teach you how to Integrate Google Sheet as your database with PHP engine. LET’S GET STARTED!
We need Google Developer Console Account for this
- On your google developer console account create a new project , name it whatever you want 😉 .
- Once it is successfully created. Click on credentials , then create credentials. Select service account key
- Then you will be redirected to this page(see image below).
- On service account select New service then fill out Service account name(input whatever service name you want). Choose P12 as Key type
- Then hit Create!
- After it is created .p12 file should be automatically downloaded(example file: whateveryouwant-2.p12 – dont lose this file we will gonna use this for Google Service API) and pop out look like this(see image below). Note on the private key “notasecret” we will be using this one later. (BTW You can hit close)
- After closing the modal you will be Service Accounts page. Please note on the service account ID from the service account we created. It’s an email address format right? This we will use this email address later.
- Next step is to create your own GOOGLE SHEET (now here we go setting up our DB).
- Done creating your own GOOGLE SHEET?
- Hold up! dont close the sheet. Click on share.
- Now share it to the service account we created on step #7. (Input the service account ID in this case email@example.com)INTEGRATING the connection with PHP using google service API will be in my next article 😉