fdmsantos/nuagevsd

PHP SDK for Nuage Networks VSD API

dev-master 2019-05-10 12:13 UTC

This package is auto-updated.

Last update: 2025-03-11 01:31:57 UTC


README

fdmsantos/nuagevsd is an SDK which allows PHP developers to easily connect to Nuage Networks VSD API in a simple and idiomatic way.

Requirements

  • PHP 7.0

How to install

composer require fdmsantos/nuagevsd

How to Use

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.