Accessing vCD via PHP

This is how you use PHP to work with vCloud.

Getting ready

Download the PHP vCloud API for vCloud from

I assume you will use PHP on Linux, so you might need a Linux VM with PHP libraries and the PHP base configuration. You probably need the HTTP_Request2 and Net_URL2 libraries.

Untar the download into the directory from where you would like to use the files. Place the new script in the main directory (vCloudPHP-5.1.2). You can move them; however, that requires you to reconfigure the pointer to the libraries.

If you are playing on a Windows environment, the base install might be different and you will need to follow the instructions that come with the Windows installer.

How to do it...

Get VMware vCloud Director Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.