PHP code example of castro732 / laravel-firebase-synchronization
1. Go to this page and download the library: Download castro732/laravel-firebase-synchronization 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/ */
castro732 / laravel-firebase-synchronization example snippets
# Firebase
FIREBASE_API_KEY="YOUR_API_KEY"
FIREBASE_DATABASE_URL="https://domain.firebaseio.com"
FIREBASE_JSON_DIR="/your-app-firebase.json"
use Castro732\Firebase\SyncsWithFirebase;
class User extends Model {
use SyncsWithFirebase;
}