VMware, Inc.
13
2
This
chapter
describes
how
to
prepare
for
using
the
vCloud
SDK
for
PHP,
and
how
to
download
the
SDK
and
use
it.
This
chapter
includes
the
following
topics:
“Prerequisites”
on
page 13
“Download
and
Install
the
vCloud
SDK
for
PHP”
on
page 14
Prerequisites
The
vCloud
SDK
for
PHP
requires
the
following
software
to
be
installed
on
the
computer
where
you
install
the
SDK:
PHP
5.3.1
or
later.
The
PEAR
HTTP_Request2
package,
version
0.5.1,
available
from
(
http://pear.php.net/package/HTTP_Request2/download
.
This
document
and
the
SDK
reference
documentation
assume
that
you
are
familiar
with
the
PHP
programming
language
and
have
access
to
an
installation
of
VMware
vCloud
Director.
In
addition,
you
should
consider
the
following:
Although
the
vCloud
SDK
for
PHP
reference
documentation
provides
information
about
the
vCloud
API
XML
schemas,
which
define
the
objects
and
operations
that
the
SDK
supports,
familiarity
with
the
details
of
the
underlying
objects
and
operations,
as
described
in
the
vCloud
API
Programming
Guide
,
can
help
you
understand
the
structure
of
vCloud
API
objects,
and
how
the
methods
in
this
SDK
operate
on
those
objects.
Before
you
can
run
the
examples,
you
must
use
the
vCloud
Director
web
console
or
the
vCloud
API
to
create
an
organization,
catalog,
and
vDC
that
the
examples
can
use.
The
organization
must
have
a
user
account
with
rights
to
run
the
examples.
The
predefined
CatalogAuthor
role
should
provide
all
the
necessary
rights.
For
more
information
about
roles
and
rights,
see
the
VMware
Cloud
Director
Administrator
ʹ
s
Guide.
Several
of
the
example
programs
require
you
to
have
an
OVF
package
available
on
the
client
host.
This
package
must
be
uncompressed,
and
can
specify
one
or
more
vmdk
files.
For
more
information
about
OVF,
see
the
vCloud
API
Programming
Guide.
Setting Up for PHP Development
2