fdmsantos/nuagevsd
is an SDK which allows PHP developers to easily connect to Nuage Networks VSD API in a simple and
idiomatic way.
- PHP 7.0
composer require fdmsantos/nuagevsd
require 'vendor/autoload.php';
use Vsd\Vsd;
$vsd = new Vsd([
'baseUri' => '{base_uri}',
'organization' => '{organization}',
'user' => '{user}',
'password' => '{password}',
]);
// Create Enterprise
$enterprise = $vsd->enterprises()->create([
'name' => '{name}',
'description' => '{description}',
]);
// Delete Enterprise
$enterprise->delete();
// List Enterprises
foreach ($vsd->enterprises()->list() as $enterprise) {
print $enterprise->name."\n";
}
Please see samples folder to more examples.