How to use the FCM HTTP v1 API with php
问题 I have used FCM with the legacy protocol but cannot find any concrete documentation to use the new FCM HTTP v1 API with php. I have managed to import the Google API Client Library into my project but cannot find any documentation or tutorials on how to obtain the access token for the required scopes for fcm messages. 回答1: If you are willing to use an existing library instead of implementing it yourself, you might consider having a look at https://github.com/kreait/firebase-php/ which has