Config file - firebase.php
On your Firebase dashboard, https://console.firebase.google.com/ go to “Service accounts” and click “Generate new private key”
Click to “generate key”
Download and save the file in /api/conf.d/firebase.php
Add 4 characters “<?php” to the beginning of the file and save it.
Below is an example of a firebase.php file:
<?php{
"type": "service_account",
"project_id": "cloudonetest-87715",
"private_key_id": "5acffd098f9a8d2c9025b417e3f4023d9139a171",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCOPZjLm3WGez5q\ndiJIfGiIw/6G/B2rhLM/aPyx52cAx2lQzuFPPrutjB8cXZTwFuur1dE1DrAdj1cj\n8LqsnlH5W2YV0Xmbj6MO1o5+1yOvn29pqtCEIgjt62tgdKHLLB9r5AIkjYwHp/pa\nFm3NPgFY4gxULi3zMzs33xbT2X3CCN+u47ZU/K6vOVRGeEj2DGl/lFpItfpwQzwa\ndwmRvWwj/n1ZMUtyneygQeUgQXj0myFiU+Gf43zHewZyUAV98bPuVL0laAJ0jCZi\nR3e+xpREKY+N2DsFr64JkoyLjNQZ/N/yT0Fe3k32cyt1AzoOX2nhKOtV63XtzDAe\nwZf6od9NAgMBAAECggEABUHZESNyjVEmTiyGGVxBx9ZIpMgSN6nsrxoMBu5I1BJK\nvfIbiUCGEsTETJnX3KTYOo5pUFb14u3OmHU4DRO/72G1rPZEUp/VNMHw29bLSp0v\nsr3dvZh9cH+8RQEijr4Xfjcb7ipuI8VNX0GHdufFCHo4Xu8jAyNgW7EK6LMX7xEz\nSX2xmoSQaARrIDVVcwl73ySTXRUtPUYZJQ6CQJZX2Co2Y50JAj+BWPkbIqd+bYML\ny5h9hcToIypGYEdXxrU29aH0vTTt0q7+ySDS80zJP7VnWX69w1UvYTjzJY7v3twv\nAGukU4UHrd73rV4sIzVfp5tyH81D5WuyTP3RcAtKgQKBgQDCiDVfspH6iRJrlo5/\nUWSdQDSFbfM2o6JYj0m39ECwzNxAJjk5qIswc//QDJaadbazkOahG42R4+1ogJ0n\nL+2wF8W2Mqq48jZ3r70kS6LlDn++Uu8uXqaXKcaT+NNH6kL4U3he2AllkSJBgiHm\nWWQv1a6lxFoz+koOfR7horOXgQKBgQC7L4IE6ofGjm47gX6awh9rKSjElqQv8tn3\n5f+n5fp0G0hVXfBQpKHTMECyasQlYnBaMrvzJzTftHPZ9/bEMdnhjxIKIMZR+oUW\nEpJZkQYWQT8RQri5JuwOTAL+rPqogWqZ9L9ldKRt6kfzqbU6g2L5DKfuMTgW/wt5\ndrbToiANzQKBgQCZkqJgTD8GRJQwL4mLZZxCsF9GPwjUx9XwiB4whTlU2kW+tu5S\nYIaR1+HKQ0XZ5rg3hlssMO5QkFnqOC7YsvO4IuxI7DLvEviBAFIXh0awAgRDIoIE\nX2Cw0aAdTUCu83evR2YtqeuxLSSYBr3wdf2r7cuUvjBf/GXejlSE2MdjAQKBgBwX\nLhDkzUlr2HkPnttEpIhlXdvaq3sSm8lK98nPhn1kFr/Q4B6KBkr2I89inFrr4eZ3\nVKNRz+p+XyBnyN16ibMC0Hc6oehtiwlb8iCE1gAC/J7vf18xyxz+JTjo5pjhCwld\npFdqYL6p+PBFGJBWZUTwtEbXlg5FaghpW1h5LQxFAoGBALWiEUdDZEwnpdhXBxyi\nf3h4aOnRV77k0VtWVgihos5CTreHKjCgC46mBBVnMZMK3K2MiqGYbPN2p7XyLexP\nlg6lfydWvcqNAh38vTqRr3SoMxi4YJGHZWrDayea/3omxi6x6lkD/ibfTDDFpZk/\nFu7PFAz6ln6rE6vA4Eh7l0a/\n-----END PRIVATE KEY-----\n",
"client_email": "firebase-adminsdk-l3gso@cloudonetest-87715.iam.gserviceaccount.com",
"client_id": "102920505142552570872",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-l3gso%40cloudonetest-87715.iam.gserviceaccount.com"
}