PHPackages                             dcone80/wsman - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dcone80/wsman

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dcone80/wsman
=============

WSMan for PHP

v0.68-beta(8y ago)212MITPHP

Since Nov 3Pushed 4y ago3 watchersCompare

[ Source](https://github.com/webzes/Wsman)[ Packagist](https://packagist.org/packages/dcone80/wsman)[ RSS](/packages/dcone80-wsman/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (10)Used By (0)

Wsman - A PHP package for WS-Management Protocol
================================================

[](#wsman---a-php-package-for-ws-management-protocol)

\-- Coming soon!

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

[](#installation)

You don't (just yet). The package is not quite ready ^\_^

Usage
-----

[](#usage)

### Create a client

[](#create-a-client)

```
use dcone80\Wsman\Wsman;

$client = new Wsman([
        'location' => "http://TARGET-HOST:5985",
        'login' => 'username',
        'password' => 'password',
    ]);
```

### Simple Queries

[](#simple-queries)

Identity target

```
$response = $client->identify();
```

Get WinRM Config

```
$config = $client->get('winrm/config');
```

### WMI Queries

[](#wmi-queries)

Get Volume C:

```
$response = $client->get('wmicimv2/Win32_logicaldisk', ['DeviceId' => 'C:']);
```

List Windows Services:

```
$response = $client->enumerate('wmicimv2/Win32_Service');
```

Using WQL:

```
$params = [
	'dialect' => 'WQL',
	'query' => 'select * from Win32_Service WHERE DelayedAutoStart = "true"'
];
$results = $client->enumerate('wmicimv2/*', $params);

```

### Windows Registy Query

[](#windows-registy-query)

```
$params = [
  'hDefKey' => '2147483650',
  'sSubKeyName' => 'SOFTWARE\Microsoft\Windows NT\CurrentVersion',
  'sValueName' => 'ProductName'
];

$response = $client->invoke('GetStringValue', 'wmi/root/default/StdRegProv', $params);
```

TODO
----

[](#todo)

- Support for BASIC Authentication
- Support for Negotiate Authentication
- Implement Get Method
- Implement Identify Method
- Implement Enumerate Method
- Implement Invoke Method
- Implement Put Method
- Implement Delete Method
- Handle Errors and failed requests
- Use Guzzlehttp client instead of plain CURL
- Test againsts non-Windows based devices
- Handle/Remove hard-coded language tags in SOAP headers

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~4 days

Total

8

Last Release

3086d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/884120d5294230e8ba7e2960fd50ddef701d41d46e628a46743a4428613185a7?d=identicon)[webzes](/maintainers/webzes)

---

Top Contributors

[![webzes](https://avatars.githubusercontent.com/u/6411223?v=4)](https://github.com/webzes "webzes (93 commits)")

---

Tags

phpwinrmwmiws-management-protocolwsman

### Embed Badge

![Health badge](/badges/dcone80-wsman/health.svg)

```
[![Health](https://phpackages.com/badges/dcone80-wsman/health.svg)](https://phpackages.com/packages/dcone80-wsman)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[getdkan/dkan

DKAN Open Data Catalog

385135.4k2](/packages/getdkan-dkan)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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