PHPackages                             vmware/vcloud-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. vmware/vcloud-sdk

ActiveLibrary[API Development](/categories/api)

vmware/vcloud-sdk
=================

VMware vCloud SDK for PHP

5.5.0(12y ago)41.2k6[1 issues](https://github.com/purple-dbu/vmware-vcloud-sdk-php/issues)2proprietaryPHPPHP &gt;=5.3.2

Since Jul 12Pushed 12y ago3 watchersCompare

[ Source](https://github.com/purple-dbu/vmware-vcloud-sdk-php)[ Packagist](https://packagist.org/packages/vmware/vcloud-sdk)[ Docs](http://communities.vmware.com/community/vmtn/developer/forums/vcloudsdkphp)[ RSS](/packages/vmware-vcloud-sdk/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (2)

vmware-vcloud-sdk-php
=====================

[](#vmware-vcloud-sdk-php)

VMware vCloud SDK for PHP - original code v5.1.2 - Repository for importing with Composer

=======

Usage
-----

[](#usage)

### Step 1. Install Composer (skip if already installed)

[](#step-1-install-composer-skip-if-already-installed)

Go to your folder root and execute:

```
curl -sS https://getcomposer.org/installer | php

```

If the installation work correctly, this should display:

```
#!/usr/bin/env php
All settings correct for using Composer
Downloading...

Composer successfully installed to: /mnt/hgfs/Documents/sandbox/vcloud/composer.phar
Use it: php composer.phar

```

At this step, you should have the following files in your project's folder:

```
$ls -Al
- composer.phar (~900 kB)

```

Then, execute:

```
[ ! -e composer.json ] && echo -e '{\n  \n}' > composer.json && php composer.phar install

```

If the installation work correctly, this should display:

```
Loading composer repositories with package information
Installing dependencies (including require-dev)
Nothing to install or update
Generating autoload files

```

At this step, you should have the following files in your project's folder:

```
$ ls -Al
- composer.phar (~900 kB)
- composer.json (7 B)
- vendor
  - autoload.php (~182 B)
  - composer
    - autoload_classmap.php (~150 B)
    - autoload_namespaces.php (~150 B)
    - autoload_real.php (~1 kB)
    - ClassLoader.php (~7 kB)

```

### Step 2. Edit your composer.json

[](#step-2-edit-your-composerjson)

VMware vCloud SDK for PHP requires PEAR's package HTTP\_Request2. To manage this dependency for your project, you can either:

1. (Option A) install HTTP\_Request2 through Composer (recommended),
2. (Option B) use a PEAR package for your system, and install HTTP\_Request2 through `pear upgrade-all && pear install HTTP_Request2`.

#### Option A. PEAR's HTTP\_Request2 is NOT installed on your system

[](#option-a-pears-http_request2-is-not-installed-on-your-system)

Otherwise, if HTTP\_Request2 is **NOT** installed on your system, you need to add the following lines to your composer.json instead:

```
"repositories": [
  {
      "type": "pear",
      "url": "http://pear.php.net"
  }
],
"require": {
  "vmware/vcloud-sdk": "5.1.2",
  "pear-pear/HTTP_Request2": "*"
}

```

#### Option B. PEAR's HTTP\_Request2 is installed on your system

[](#option-b-pears-http_request2-is-installed-on-your-system)

If HTTP\_Request2 is installed on your system, all you need is to add the following lines to your composer.json:

```
"require": {
  "vmware/vcloud-sdk": "5.1.2"
}

```

### Step 3. Update dependencies

[](#step-3-update-dependencies)

```
php composer.phar update

```

If the installation work correctly, this should display:

```
Loading composer repositories with package information
Initializing PEAR repository http://pear.php.net
Updating dependencies (including require-dev)
  - Installing vmware/vcloud-sdk (5.1.2 8f2e517)
    Cloning 8f2e517dd3e5c858d7729148bac526414d1444e3

  - Installing pear-pear.php.net/xml_util (1.2.1)
    Downloading: 100%
  - Installing pear-pear.php.net/console_getopt (1.3.1)
    Downloading: 100%
  - Installing pear-pear.php.net/structures_graph (1.0.4)
    Downloading: 100%
  - Installing pear-pear.php.net/archive_tar (1.3.11)
    Downloading: 100%
  - Installing pear-pear.php.net/pear (1.9.4)
    Downloading: 100%
  - Installing pear-pear.php.net/net_url2 (2.0.0)
    Downloading: 100%
  - Installing pear-pear.php.net/http_request2 (2.1.1)
    Downloading: 100%
Writing lock file
Generating autoload files

```

### Step 4. Use it!

[](#step-4-use-it)

Now, you should be able to use VMware vCloud SDK for PHP by simply use the following PHP code:

```
require_once 'vendor/autoload.php';

$host = '192.168.0.100';

$auth = array(
  'username' => 'username@organization',
  'password' => 'password',
);

$httpConfig = array(
    'proxy_host' => null,
    'proxy_port' => null,
    'proxy_user' => null,
    'proxy_password' => null,
    'ssl_verify_peer' => false,
    'ssl_verify_host' => false,
    'ssl_cafile'  => null,
  );

echo 'Authenticating on ' . $host . '... ';
$service = VMware_VCloud_SDK_Service::getService();
try {
  $result = $service->login($host, $auth, $httpConfig);
  echo "OK\n";
}
catch(Exception $e) {
  echo 'NOK - ' . $e->getMessage() . "\n";
  exit(1);
}

...

```

License
-------

[](#license)

See vCloudSDKforPHP-License.docx

Setup a development environment
-------------------------------

[](#setup-a-development-environment)

This section is intented for contributors would would fork this project.

### 1/a. Install Composer (skip if already installed)

[](#1a-install-composer-skip-if-already-installed)

```
curl -sS https://getcomposer.org/installer | php

```

If the installation work correctly, this should display:

```
#!/usr/bin/env php
All settings correct for using Composer
Downloading...

Composer successfully installed to: /mnt/hgfs/Documents/sandbox/vcloud/composer.phar
Use it: php composer.phar

```

### 1/b. Upgrade Composer (skip if freshly installed)

[](#1b-upgrade-composer-skip-if-freshly-installed)

```
php composer.phar self-update

```

This will upgrade Composer to the latest version. If Composer is already up-to-date, this will display:

```
You are using the latest composer version.

```

### 2. Install/upgrade dependencies

[](#2-installupgrade-dependencies)

```
php composer.phar install

```

If the installation work correctly, this should display something like:

```
Loading composer repositories with package information
Initializing PEAR repository http://pear2.php.net
Installing dependencies (including require-dev)
  - Installing pear-pear2.php.net/pear2_http_request (0.1.0)
    Downloading: 100%
Writing lock file
Generating autoload files

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~89 days

Total

2

Last Release

4646d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1246795?v=4)[Alex Mercier](/maintainers/amercier)[@amercier](https://github.com/amercier)

---

Top Contributors

[![amercier](https://avatars.githubusercontent.com/u/1246795?v=4)](https://github.com/amercier "amercier (25 commits)")

---

Tags

apisdkVMwarevclouddirector

### Embed Badge

![Health badge](/badges/vmware-vcloud-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/vmware-vcloud-sdk/health.svg)](https://phpackages.com/packages/vmware-vcloud-sdk)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

46784.5k5](/packages/deepseek-php-deepseek-php-client)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

138110.7k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
