Tag Archives: logger

Firebase Logger

Views: 587 Firebase Logger is a simple firebase PHP logger package to monitor and save the users activities. Installation Use composer to install firebase-logger:composer require khaledalam/firebase-logger Preview Usage example.php <?php // PHP 7.1^ //error_reporting(0); include_once ‘./FirebaseLogger.php’; $serviceFile = __DIR__ . ‘/serviceAccountKey.json’; $databaseUri = ‘https://{EDIT_THIS}.firebaseio.com’; $firebaseLogger = new FirebaseLogger([ ‘service_account_key_json’ => $serviceFile, ‘database_uri’ => $databaseUri, ‘database_realtime_name’ => ‘Logger’, ]);

Read More