title: Getting ms exchange server version using php-ews
body: <p>I am using <a href="https://github.com/jamesiarmes/php-ews" rel="nofollow noreferrer">php-ews</a> library(new version) to display the calendar events of the users in my project. The users can set their ms exchange account details in their profile and then use the calendar within my project itself. The code is like below</p>
  <pre><code>$host = '{host_set_on_users_profile}';
  $username = '{username_set_on_users_profile}';
  $password = '{password_set_on_users_profile}';
  $version = Client::VERSION_2016;
  
  $client = new Client($host, $username, $password, $version);
  $client-&gt;setTimezone($timezone);
  
  // Build request
  $request = new FindItemType();
  // more request building code here
  
  $response = $client-&gt;FindItem($request);
  </code></pre>
  <p>But I am getting the below issue</p>
  <p><code>[faultstring] =&gt; The specified server version is invalid.</code></p>
  <p>The reason is I have used fixed VERSION_2016 and the users can have any version of ms exchange set up for the account.</p>
  <p>So is there any way using which first I can find out the server version based on host,username and password? so that I can use the same for creating the client object</p>