title: I want a sample code for Google Analytics Data API (GA4) in PHP using orderBy and Filters
body: <p>I have gone through several git repositories to get the sample code using Filters and OrderBy using php-client-library for GA4 data analytics. Can you please help me with small sample code for using it ? I tried many ways but none are working.</p>
  <p>My requirement I have was to sort the result by Dimention and also filters the top 10 pages with specific query string in the url.</p>
  <p>This is the one I'm using for implementing : <a href="https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries#php_1" rel="nofollow noreferrer">https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries#php_1</a></p>
  <p>I also found that the samples link in php section opens a python samples :</p>
  <p><a href="https://i.stack.imgur.com/1tAkk.png" rel="nofollow noreferrer">enter image description here</a></p>
  <ul>
  <li>Suresh</li>
  </ul>