kreait / firebase-php

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

Add features to get firebase server env remote config #915

Open HyeZedd opened 4 months ago

HyeZedd commented 4 months 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 4 months 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 4 months 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 4 months ago

Thanks! Other relevant links, for future reference:

jeromegamez commented 2 months 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.