PHP code example of ucha19871 / fb

1. Go to this page and download the library: Download ucha19871/fb library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ucha19871 / fb example snippets


Ucha19871\FB\FBServiceProvider::class,

'FB' => Ucha19871\FB\Facades\FBFacades::class,

    'firebase' => [
        'database_url' => 'https://PROJECT.firebaseio.com',
        'secret' => 'KB2xZjJgAvmPROJECT8ykNrT6f2emuuaxJTr9',
    ]

$data = ['key' => 'data' , 'key1' => 'data1']
FB::set('/test/',$data); 

FB::get('/test/',['print'=> 'pretty']);

FB::push('/test/',$data); 

FB::update('/test/',['key1' => 'Updating data by key']); 

FB::delete('/test/');