PHP code example of proficlos / openstack-nette
1. Go to this page and download the library: Download proficlos/openstack-nette library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
proficlos / openstack-nette example snippets
/** @var \ProfiCloS\OpenStack @inject */
public $openStack;
/* object store */
$objectStorage = $this->openStack->objectStoreV1();
/* compute */
$compute = $this->openStack->computeV2();
/* networking */
$compute = $this->openStack->networkingV2();
/* images */
$compute = $this->openStack->imagesV2();
/*
and others ...
*/
/* or returns full php-opencloud/openstack */
$openStack = $this->openStack->getOpenStack();