martinmulder / vmware-api
A PHP implementation for the VMWare API
Installs: 294
Dependents: 1
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 8
Open Issues: 1
pkg:composer/martinmulder/vmware-api
Requires
- php: 7.*
- ext-json: *
- guzzlehttp/guzzle: 6.*
This package is auto-updated.
Last update: 2025-09-27 16:33:55 UTC
README
A PHP wrapper for the VMWare API. This is a pre-alpha release, so stuf isn't working correctly atm.
Installation
composer require martinmulder/vmware-api
Guide
Our VMWare API implementation contains the following features:
- Simple login using application passwords.
- Automatic retry functionionality that retries requests when connection errors or status codes >= 500 occur.
- Direct function calls for much used api endpoints.
- Easy syntax for all other endpoints using
$api->request($method, $uri, $json = [], $query = [])
.
// Create a new API instance, endpoint should end on "/rest/". $api = new \MartinMulder\VMWare\[Vcenter|Appliance|Inventory]IApi('https://vcenter.local/rest/');
// LEGACY LOGIN WITH TOKEN $api->login('yourusername', 'yourpassword');
Now your API should be ready to use:
$vms = $api->getListOfVms(); foreach($vms as $vm) { var_dump($vm); }