I am trying to use php with firebase after installing the package “composer require kreait/firebase-php ^4.0” and adjusting my firebase it shows me that error: Fatal error: Uncaught GuzzleHttpExceptionConnectException: cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to ff64t.firebaseio.com:443 (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in C:xampphtdocsdashboardwebservicephp_firebasevendorguzzlehttpguzzlesrcHandlerCurlFactory.php:200 Stack trace: #0 C:xampphtdocsdashboardwebservicephp_firebasevendorguzzlehttpguzzlesrcHandlerCurlFactory.php(155): GuzzleHttpHandlerCurlFactory::createRejection(Object(GuzzleHttpHandlerEasyHandle), Array) #1 C:xampphtdocsdashboardwebservicephp_firebasevendorguzzlehttpguzzlesrcHandlerCurlFactory.php(105): GuzzleHttpHandlerCurlFactory::finishError(Object(GuzzleHttpHandlerCurlHandler), Object(GuzzleHttpHandlerEasyHandle), Object(GuzzleHttpHandlerCurlFactory)) #2 C:xampphtdocsdashboardwebservicephp_firebasevendorguzzlehttpguzzlesrcHandlerCurlHandler.php(43): GuzzleHttpHandlerCurlFactory::finish(Object(GuzzleHttpHandlerCurlHandler), Object(Guz in C:xampphtdocsdashboardwebservicephp_firebasevendorkreaitfirebase-phpsrcFirebaseExceptionApiException.php
Tag: firebase
Unable to get the user form kreait/firebase-php using $auth->getUser($uid);
I have my PHP code which looks like, With the help of the above code, I am able to get the UID of the user but the output for the print_r($user) looks like, How can I get print the $user in this format? I need to get the email Id and other details of the user from using the function
Set FCM channel ID in PHP for notifications
I’m trying to send FCM notification to Android device using PHP. My code is working for devices before Android O. In Android O, we need to set channel ID in request as well to receive notifications, …
incrementing a field in firestore (php)
I am looking for a way to increment a field in firestore like in this documentation. The only caveat is that I am trying to use firestore Client Sdk or the Admin Sdk for php. What is a clean solution for incrementing a field in php. Does it require both read and write operations or is it possible with only