---
title: InfoApi
summary: PHP SDK: the Info operations, 1 method, each with its parameters, result and a complete example.
order: 19
languages: [php]
sdk-package: PHP SDK · BIMworks
link-terms: true
---

# InfoApi

[[page:reference/sdk/php|PHP SDK]] · `BIMworks\Api` · class · 1 method

General information about the instance

Construct it with the client of [[page:reference/sdk/php#connect|the connect step]]: `new InfoApi(config: $client)`. Each method is one operation of the [[page:api|API part]], where it runs on its page.

<table class="dense">
<thead><tr><th>Method</th><th>Operation</th><th>Description</th></tr></thead>
<tbody>
<tr><td><code>[[page:reference/sdk/php/infoapi#getapplicationversion|getApplicationVersion]]</code></td><td>[[openapi:GetApplicationVersion]]</td><td>The BIM.works version of the instance</td></tr>
</tbody>
</table>

## `getApplicationVersion` {#getapplicationversion}

```php
public function getApplicationVersion(): GetApplicationVersion200Response
```

The BIM.works version of the instance. The version of BIM.works the instance runs, to check compatibility. No credential needed.

<table class="dense">
<tbody>
<tr><th>Operation</th><td>[[openapi:GetApplicationVersion]] · <code>POST /openapi/info/GetApplicationVersion</code></td></tr>
<tr><th>Scope</th><td>none: callable before logging in</td></tr>
</tbody>
</table>

### Parameters

None: the operation takes no request.

### Returns

<code>[[page:reference/sdk/php/models#GetApplicationVersion200Response|GetApplicationVersion200Response]]</code> — The version

### Example

```php
<?php
require __DIR__ . '/vendor/autoload.php';

use BIMworks\Api\InfoApi;
use BIMworks\Configuration;

// 1. Connect to BIM.works (GetApplicationVersion needs no login)
$client = (new Configuration())->setHost('BIM_WORKS_ADDRESS/openapi');

// 2. The request
// (GetApplicationVersion takes no request)

// 3. The call
$result = (new InfoApi(config: $client))->getApplicationVersion();

// 4. The result
echo json_encode($result, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), PHP_EOL;
```
