PHPackages                             sulochanatutorials/vmware-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. sulochanatutorials/vmware-client

ActiveLibrary[API Development](/categories/api)

sulochanatutorials/vmware-client
================================

PHP API Client for VmWare

0213PHP

Since Sep 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sulochanatutorials/php-vmware)[ Packagist](https://packagist.org/packages/sulochanatutorials/vmware-client)[ RSS](/packages/sulochanatutorials-vmware-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)​

PHP API Client for VMWare
=========================

[](#php-api-client-for-vmware)

​ [![Latest Version on Packagist](https://camo.githubusercontent.com/6cac082a3516ede951d6f3b191843ef413ef08a966634de10ae79dbaeab1e499/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f566d576172652d61672f766d776172652d7068702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/VmWare-ag/vmware-php-client)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6d48f28c80b28e97092c45f977c7ac448c7d40e9a49cd76d1d70dd9ffb823d27/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f566d576172652d61672f766d776172652d7068702d636c69656e742f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/VmWare-ag/vmware-php-client/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ec2920ae145f0cc0db91b73900bcf56c94e0b22ea3736a6f0fa898e8b839e44c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f566d576172652d61672f766d776172652d7068702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/VmWare-ag/vmware-php-client)​

Installation
------------

[](#installation)

​ You can install the package via composer: ​

```
composer require VmWare-ag/vmware-php-client
```

​ You can publish the config file with: ​

```
php artisan vendor:publish --tag="vmware-php-client-config"
```

​

```
return [
    'session_ttl' => env('VMWARE_SESSION_TTL', 10),
    'enable_logs' => env('VMWARE_ENABLE_LOGS', true),
];
```

​ ​

Getting started
---------------

[](#getting-started)

​ Create a connection to your hypervisor so that you can call the methods:

```
$vcenterClient = new VmWare\VmWareClient\VcenterClient(
    'https://10.20.30.40',
    'mylogin',
    'mypassword'
);
$vmInfo = $vcenterClient->getVmInfo('vm-123');
```

This lib can run in three modes: `rest`, `soap` and `both`. By default, it runs in `rest` mode, but you can set another mode in constructor:

```
$vcenterClient = new VmWare\VmWareClient\VcenterClient(
    'https://10.20.30.40',
    'mylogin',
    'mypassword',
    'soap'
);
```

Yet we recommend to use constants:

```
$vcenterClient = new VmWare\VmWareClient\VcenterClient(
    'https://10.20.30.40',
    'mylogin',
    'mypassword',
    VmWare\VmWareClient\VcenterClient::MODE_SOAP
);
```

​

### `rest` mode

[](#rest-mode)

​ With `rest` mode you can use REST methods which you can find in the [VMWare API developer center](https://developer.vmware.com/apis/vsphere-automation/latest/). For now, the lib has only some methods available. You can find full list of files in the `vendor/VmWare-ag/vmware-php-client/src/Traits/Rest` folder. ​

> We plan to add the full list of methods later. ​

### `soap` mode

[](#soap-mode)

​ Using `soap` mode allow you to use SOAP methods which you can find in [VMWare SOAP developer center](https://developer.vmware.com/apis/1192/vsphere). For now, the lib has only some methods available. You can find full list of files in the `vendor/VmWare-ag/vmware-php-client/src/Traits/SOAP` folder. ​

> We plan to add the full list of methods later. ​

Here's how to make your first SOAP call:

```
$folder = $vcenterClient->soap->createFolder('group-v3', 'foldername');
```

​ If you want to use both modes at one time you can set `both` mode (VmWare\\VmWareClient\\VcenterClient::MODE\_BOTH). ​ If you want to run custom `soap` method, which you do not find in lib, you can run this method directly:

```
$vcenterClient = new VmWare\VmWareClient\VcenterClient(
    'https://10.20.30.40',
    'mylogin',
    'mypassword',
    VmWare\VmWareClient\VcenterClient::MODE_SOAP
);
​
$taskInfo = $vcenterClient->soap->request('ReconfigureComputeResource_Task', [
    '_this' => [
        '_' => 'domain-c33',
        'type' => 'ComputeResource',
    ],
    'spec' => [
        '@type' => 'ClusterConfigSpecEx',
        'drsConfig' => [
            '@type' => 'ClusterDrsConfigInfo',
        ],
        'rulesSpec' => [
            '@type' => 'ClusterRuleSpec',
            'operation' => 'add',
            'info' => [
                '@type' => 'ClusterAntiAffinityRuleSpec',
                'enabled' => true,
                'name' => 'VM-VM Affinity rule',
                'userCreated' => true,
                'vm' => [
                    ['_' => 'vm-133', 'type' => 'VirtualMachine'],
                    ['_' => 'vm-134', 'type' => 'VirtualMachine']
                ]
            ],
        ],
        'dpmConfig' => [
            '@type' => 'ClusterDpmConfigInfo',
        ],

    ],
    'modify' => false,
])
```

​

> Order of parameters is very important. You can find the correct order in the documentation, the `WSDL type definition` section for each object type. ​

Credits
-------

[](#credits)

​

- [Andrii Hazhur](https://github.com/gazhur94)
- [All Contributors](https://github.com/VmWare-AG/vmware-php-client/graphs/contributors)​

Questions and feedback
----------------------

[](#questions-and-feedback)

​ If you've got questions about setup or just want to chat with the developer, please feel free to reach out to . ​

License
-------

[](#license)

​ The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6697198eefa0cf21804282f9e8170150e7c2bedc30ec9615069b6f68602b8c9a?d=identicon)[sulochanatutorials](/maintainers/sulochanatutorials)

---

Top Contributors

[![ganeshkanade-oss](https://avatars.githubusercontent.com/u/248285170?v=4)](https://github.com/ganeshkanade-oss "ganeshkanade-oss (6 commits)")

### Embed Badge

![Health badge](/badges/sulochanatutorials-vmware-client/health.svg)

```
[![Health](https://phpackages.com/badges/sulochanatutorials-vmware-client/health.svg)](https://phpackages.com/packages/sulochanatutorials-vmware-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
