kreait / firebase-php

Unofficial Firebase Admin SDK for PHP
https://firebase-php.readthedocs.io/
MIT License
2.23k stars 425 forks source link

Add features to get firebase server env remote config #915

Open HyeZedd opened 1 month ago

HyeZedd commented 1 month ago

Describe the feature you would like to see

Currently on firebase remote config have 2 env option which is client & server. Currently cant get remote config from client env only.

jeromegamez commented 1 month ago

Could you please provide more details? What is a 2 env option? What is meant by client/server?

The best would be a link to the official documentation or relevant code in one of the official SDKs (This is something that the notes when creating a feature request asked already).

HyeZedd commented 1 month ago

image

as stated in the image above.. firebase have 2 remote config option.. client or server.. right now only can get from the client.. it there any way to get from server.

this are documentation that might help https://firebase.google.com/docs/remote-config/server

jeromegamez commented 1 month ago

Thanks! Other relevant links, for future reference:

jeromegamez commented 2 days ago

I looked into this a little bit and found that the server template version is a different data structure compared to the client template version, so there's a little more work to do than just copying the get() method to a getServerTemplate().

Also, this addition would require a change to the RemoteConfig interface, so it's possible that I have to hold back on this until the next major version.