# Firebase integration with PHP

Here I am going to give quick intro to how to integrate PHP with Firebase. Find below steps. This will cover integration part. 

**Step to start** :

1.  Create firebase account for web app

[https://firebase.google.com/products/](https://firebase.google.com/products/) as per this guideline create cloud storage and create your Firebase account

2\. Then create service account for configuration JSON parameters

follow this installation guide

[https://firebase-php.readthedocs.io/en/stable/setup.html#setup](https://firebase-php.readthedocs.io/en/stable/setup.html#setup)

[https://developers.google.com/identity/protocols/OAuth2ServiceAccount](https://developers.google.com/identity/protocols/OAuth2ServiceAccount)


<noscript><img alt="Image for post" class="eu ek eg ik w" src="https://miro.medium.com/max/2448/0*OxrP_0aO5R2eBbAo.png" width="1224" height="636" srcSet="https://miro.medium.com/max/552/0*OxrP_0aO5R2eBbAo.png 276w, https://miro.medium.com/max/1104/0*OxrP_0aO5R2eBbAo.png 552w, https://miro.medium.com/max/1280/0*OxrP_0aO5R2eBbAo.png 640w, https://miro.medium.com/max/1400/0*OxrP_0aO5R2eBbAo.png 700w" sizes="700px"/></noscript>

Download JSON file name will like “api-project-1075484619737–3371fe5240c8.json”. Keep this file this will use in step 3 while doing configuration in project


<noscript><img alt="Image for post" class="eu ek eg ik w" src="https://miro.medium.com/max/1616/0*uN5x47SAH6XQULd7.png" width="808" height="362" srcSet="https://miro.medium.com/max/552/0*uN5x47SAH6XQULd7.png 276w, https://miro.medium.com/max/1104/0*uN5x47SAH6XQULd7.png 552w, https://miro.medium.com/max/1280/0*uN5x47SAH6XQULd7.png 640w, https://miro.medium.com/max/1400/0*uN5x47SAH6XQULd7.png 700w" sizes="700px"/></noscript>

3\. Install firebase in your machine using composer

[https://firebase-php.readthedocs.io/en/stable/overview.html#installation](https://firebase-php.readthedocs.io/en/stable/overview.html#installation)

**Note : PHP 7.X is recommend for this.**

then


4\. Installation complete! Enjoy. 

Reference : 
[firebase-php.readthedocs.io](https://firebase-php.readthedocs.io/en/stable/overview.html#usage-example)
