PHPackages                             pcextreme/cloudstack - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pcextreme/cloudstack

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

pcextreme/cloudstack
====================

Cloudstack PHP Client

0.3.0(7y ago)1026.2k↓46.7%10[3 issues](https://github.com/PCextreme/cloudstack-php/issues)MITPHPPHP &gt;=7.1.0

Since Aug 18Pushed 7y ago7 watchersCompare

[ Source](https://github.com/PCextreme/cloudstack-php)[ Packagist](https://packagist.org/packages/pcextreme/cloudstack)[ Docs](https://github.com/pcextreme/cloudstack-php)[ RSS](/packages/pcextreme-cloudstack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (13)Used By (0)

[![github-readme_header](https://cloud.githubusercontent.com/assets/2406615/17754363/6e205280-64d4-11e6-946d-e7e7aedb2e30.png)](https://www.pcextreme.nl)

PHP Cloudstack Client
=====================

[](#php-cloudstack-client)

[![Latest Version](https://camo.githubusercontent.com/e9799cc368a45436c12836529014bea35c815b03426a7d1f78376b963006baee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f504365787472656d652f636c6f7564737461636b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://github.com/PCextreme/cloudstack-php/tags)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/PCextreme/cloudstack-php/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/cc191b7bffc841941a51b73f56f0cf7ce07b4d537592c3cdb3b929f1947efa0f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f504365787472656d652f636c6f7564737461636b2d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/PCextreme/cloudstack-php)[![Scrutinizer](https://camo.githubusercontent.com/62cf72e9d3f2842de09c9c00b2ca499c20fbd58c03caac25deedeee953a2aade/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f504365787472656d652f636c6f7564737461636b2d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/PCextreme/cloudstack-php/)[![Coverage Status](https://camo.githubusercontent.com/71ce0f6e19e57bba23ec6bd43f27064f309a2fe3779068bb4256bb25c75b014b/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f504365787472656d652f636c6f7564737461636b2d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/PCextreme/cloudstack-php?branch=master)

This package makes it simple to integrate the Cloudstack API in your PHP applications.

Requirements
------------

[](#requirements)

The following versions of PHP are supported:

- PHP 7.1 or higher

### Support for PHP 5.x has been dropped

[](#support-for-php-5x-has-been-dropped)

In favour of stricter type hinting and return types we stopped supporting older PHP versions in new releases.

**Please note:** General support for PHP 5.x will be ending soon, [check the PHP documentation](http://php.net/supported-versions.php) for more information about PHP version support.

*If you still require support for PHP 5.x or HHVM you can use the `~0.2` [releases](/PCextreme/cloudstack-php/releases) of this package.*

Installation
------------

[](#installation)

Use `composer require` to add the client to your `composer.json` file, [please check the Composer documentation](https://getcomposer.org) for more information about Composer.

```
$ composer require pcextreme/cloudstack

```

Usage
-----

[](#usage)

There are various ways to interact with the Cloudstack API using this package. The easiest and preferred way is to call the Cloudstack 'commands' directly as a method on the client.

Internally the client resolves the command using the `__call` magic method. The command will be automatically resolved and the provided options are verified. Also when everything goes as expected the API response is automatically parsed.

The client uses an API list mapping stored in the cache folder do determine if an API command exists and all required parameters are provided. This list is generated using Cloudstack's `listApis` command.

```
