title: How to use the FCM HTTP v1 API with php
body: <p>I have used FCM with the legacy protocol but cannot find any concrete documentation to use the new FCM HTTP v1 API with php.</p>
  
  <p>I have managed to import the <a href="https://developers.google.com/api-client-library/php/start/installation" rel="noreferrer">Google API Client Library</a> into my project but cannot find any documentation or tutorials on how to obtain the access token for the required scopes for fcm messages.</p>