PHPackages                             phpwintools/wmi-scripting - 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. phpwintools/wmi-scripting

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

phpwintools/wmi-scripting
=========================

A PHP package for using WMI tools.

0.1.1-alpha(6y ago)27[26 issues](https://github.com/phpwintools/wmi-scripting/issues)[22 PRs](https://github.com/phpwintools/wmi-scripting/pulls)MITPHPPHP ^7.1.3

Since Aug 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/phpwintools/wmi-scripting)[ Packagist](https://packagist.org/packages/phpwintools/wmi-scripting)[ RSS](/packages/phpwintools-wmi-scripting/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (5)Versions (27)Used By (0)

WMI Scripting
=============

[](#wmi-scripting)

 [![AppVeyor Build Status](https://camo.githubusercontent.com/e5cc4f8b68426e170257aef6ac39bf371020195181e280af3af80f07522be0fb/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f6769746875622f70687077696e746f6f6c732f776d692d736372697074696e673f7376673d74727565266272616e63683d6d61737465722670617373696e67546578743d4d61737465722532302d25323050617373696e67266661696c696e67546578743d4d61737465722532302d2532304661696c696e672670656e64696e67546578743d4d61737465722532302d25323054657374696e67)](https://ci.appveyor.com/project/jspringe/wmi-scripting/branch/master) [![Scrutinizer](https://camo.githubusercontent.com/93604156737885260fcf239941367120c3d1173a3f8ffc4c91eeffd2c98a1079/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70687077696e746f6f6c732f776d692d736372697074696e672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phpwintools/wmi-scripting/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/8b971114b31e8deb82dc0957c0af6d74a07540bda3a7fe77751ce149909af90e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70687077696e746f6f6c732f776d692d736372697074696e672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/8b971114b31e8deb82dc0957c0af6d74a07540bda3a7fe77751ce149909af90e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70687077696e746f6f6c732f776d692d736372697074696e672f6261646765732f636f7665726167652e706e673f623d6d6173746572) [![Latest Stable Version](https://camo.githubusercontent.com/a49138ea2fcab5111f7619e8905f9452eb5e0b8082c490ad5f184c5a335a54e4/68747470733a2f2f706f7365722e707567782e6f72672f70687077696e746f6f6c732f776d692d736372697074696e672f762f737461626c652e737667)](https://packagist.org/packages/phpwintools/wmi-scripting) [![Latest Unstable Version](https://camo.githubusercontent.com/c4e6edb6559829de6234be7a88faf3d898aad32751bcf563cade96b8220c13d4/68747470733a2f2f706f7365722e707567782e6f72672f70687077696e746f6f6c732f776d692d736372697074696e672f762f756e737461626c652e737667)](https://packagist.org/packages/phpwintools/wmi-scripting) [![License](https://camo.githubusercontent.com/ba8fa6ba62bed7cbd445dfa1295d7f4fecddb76d47819137b718948d7787c701/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70687077696e746f6f6c732f776d692d736372697074696e67)](https://packagist.org/packages/phpwintools/wmi-scripting)

### Current Version: 0.1.1-alpha

[](#current-version-011-alpha)

This is currently under heavy development and no release candidate has be marked at this point. You are free to use this in production with relatively low-risk as the library itself is fully functional, and is READ-ONLY so there should be no side-effects from its usage.

### [Documentation (WIP)](https://phpwintools.github.io/wmi-scripting/)

[](#documentation-wip)

### Install

[](#install)

`composer require phpwintools/wmi-scripting`

### Basic Usage

[](#basic-usage)

Basic usage is to call `::query($connection = null)` on an available model from .

```
PhpWinTools\WmiScripting\Models\LoggedOnUser::query()->get();

```

This returns a collection of logged on users from the default connection (this is local by configuration). The `ModelCollection` extends  / [Laravel Collections](https://laravel.com/docs/5.8/collections).

You can also instantiate `Scripting`:

```
$scripting = new PhpWinTools\WmiScripting\Scripting;
$scripting->addConnection('remote', PhpWinTools\WmiScripting\Connection::simple('server', 'user', 'password'));
$scripting->query('remote')->loggedOnUser()->get();

```

Whether you use `$scripting->query($connection = null)->modelName()` or `::query($connection = null)` you are dropped into a basic query builder which currently only allows `select` and `where` clauses. If there are any subject matter experts who would like to guide me on how this query builder should look please contact me.

#### Testing

[](#testing)

This is still an area that is under development.

You can call `Scripting::fake($testCase)->win32Model($class_name);` to create a fake for testing without actually creating a real connection to a WMI service.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~24 days

Total

2

Last Release

2440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08b403c42782c4310c50a349df3e7a73218c23073f559f937649b1ec76743332?d=identicon)[jspringe](/maintainers/jspringe)

---

Top Contributors

[![jspringe](https://avatars.githubusercontent.com/u/518362?v=4)](https://github.com/jspringe "jspringe (187 commits)")

---

Tags

commanagementphpremoteremotelyscriptingwin32windowswinmgmtswmiwmi-scriptingphpmanagementwindowsinstrumentationscriptingwindotnetwin32COMwmiWindows Management Instrumentation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phpwintools-wmi-scripting/health.svg)

```
[![Health](https://phpackages.com/badges/phpwintools-wmi-scripting/health.svg)](https://phpackages.com/packages/phpwintools-wmi-scripting)
```

###  Alternatives

[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)[jolicode/php-os-helper

Helpers to detect the OS of the machine where PHP is running.

212.8M4](/packages/jolicode-php-os-helper)[eftec/minilang

A mini scripting language for php

113.2k2](/packages/eftec-minilang)

PHPackages © 2026

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