Download the PHP package pcextreme/cloudstack-client without Composer
On this page you can find all versions of the php package pcextreme/cloudstack-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cloudstack-client
This package is deprecated and will be replaced in the near future
Cloudstack Client
The is a PHP based Cloudstack API ORM.
The Cloudstack Client utilises the kevindierkx/elicit API ORM and supports all major functionality.
Installation
Currently the Cloudstack Client only supports Laravel based applications, support for native PHP will be added in the future.
To install this package you will need:
- Laravel >= 4.2
- PHP >= 5.4
You must then modify your composer.json file and run composer update to include the latest version of the package in your project:
Or you can run the composer require command from your terminal:
Once the package is installed you need to open and register the required service provider:
Optionaly you can add the following line to your aliases to utilise the provided facade:
Configuration
Run the following command to publish the package configuration:
This will add the package configuration to your packages folder , here you will be providing the required connection details.
SSO keys are generally only for Cloudstack administrators and are not required.
Usage
When using the Cloudstack facade you can call all commands available to your Cloudstack user directly.
For example calling with the parameter would look like the following:
The above would return when the return count is 0. This happens when you don't have any instances, the same would happen for other calls. When Cloudstack returns multiple results the Cloudstack Client would return an instance of you can use the methods provided within this instance to manipulate the resulted data.
Please note that the is required for every direct request. The Cloudstack Client provides this file by default and is located in the folder withing this package.
Credits
License
The MIT License (MIT). Please see License File for more information.