PHPackages                             xelon-ag/vmware-php-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. xelon-ag/vmware-php-client

ActiveLibrary[API Development](/categories/api)

xelon-ag/vmware-php-client
==========================

PHP API Client for VmWare

0.3.13(3mo ago)114.3k↓91.8%1[3 PRs](https://github.com/Xelon-AG/vmware-php-client/pulls)MITPHPPHP ^8.0|^8.1|^8.2|^8.3CI failing

Since Nov 10Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/Xelon-AG/vmware-php-client)[ Packagist](https://packagist.org/packages/xelon-ag/vmware-php-client)[ Docs](https://github.com/xelon-ag/vmware-php-client)[ RSS](/packages/xelon-ag-vmware-php-client/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (20)Versions (60)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/93a6eb8ab8ab48d86a2b756bd939d19723e73aacaeca46a836b8b06c59cd6ff5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f78656c6f6e2d61672f766d776172652d7068702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xelon-ag/vmware-php-client)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/326cfac2ca7ee75d946ef1f6b6642e130e8f257686a9b152e1929c2d857e8817/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f78656c6f6e2d61672f766d776172652d7068702d636c69656e742f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/xelon-ag/vmware-php-client/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/534c06b1602d87f9df80dac8e64230e82056871a3e10de07e80a677d98092249/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f78656c6f6e2d61672f766d776172652d7068702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xelon-ag/vmware-php-client)​

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

[](#installation)

​ You can install the package via composer: ​

```
composer require xelon-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 Xelon\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 Xelon\VmWareClient\VcenterClient(
    'https://10.20.30.40',
    'mylogin',
    'mypassword',
    'soap'
);
```

Yet we recommend to use constants:

```
$vcenterClient = new Xelon\VmWareClient\VcenterClient(
    'https://10.20.30.40',
    'mylogin',
    'mypassword',
    Xelon\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/xelon-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/xelon-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 (Xelon\\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 Xelon\VmWareClient\VcenterClient(
    'https://10.20.30.40',
    'mylogin',
    'mypassword',
    Xelon\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/Xelon-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

50

—

FairBetter than 95% of packages

Maintenance79

Regular maintenance activity

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~50 days

Total

25

Last Release

111d ago

PHP version history (4 changes)0.1.0PHP ^7.4

0.1.3PHP ^7.4|^8.0|^8.1|^8.2

0.3.0PHP ^7.4|^8.0|^8.1|^8.2|^8.3

0.3.6PHP ^8.0|^8.1|^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/1de1fd256c524ac6d6b73ff586a96eb216437f260e2e315dc7d80800d5820564?d=identicon)[tonkoshkurik](/maintainers/tonkoshkurik)

---

Top Contributors

[![gazhur94](https://avatars.githubusercontent.com/u/35307288?v=4)](https://github.com/gazhur94 "gazhur94 (40 commits)")[![tonkoshkurik](https://avatars.githubusercontent.com/u/13135755?v=4)](https://github.com/tonkoshkurik "tonkoshkurik (40 commits)")[![nihaha](https://avatars.githubusercontent.com/u/9482805?v=4)](https://github.com/nihaha "nihaha (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![orybchynskyi](https://avatars.githubusercontent.com/u/184951340?v=4)](https://github.com/orybchynskyi "orybchynskyi (4 commits)")

---

Tags

laravelxelon-agvmware-php-client

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/xelon-ag-vmware-php-client/health.svg)

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

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M164](/packages/spatie-laravel-health)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k91](/packages/nativephp-mobile)

PHPackages © 2026

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