commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
PackageVersion.php
1 <?php
2 
3 
4 namespace Commercetools\Client;
5 
6 use Composer\InstalledVersions;
7 
9 {
10  public static function get(): ?string
11  {
12  if (class_exists("\Composer\InstalledVersions")) {
13  return InstalledVersions::getPrettyVersion('commercetools/commercetools-sdk');
14  }
15  return null;
16  }
17 }