Download the PHP package phpwintools/wmi-scripting without Composer
On this page you can find all versions of the php package phpwintools/wmi-scripting. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phpwintools/wmi-scripting
More information about phpwintools/wmi-scripting
Files in phpwintools/wmi-scripting
Package wmi-scripting
Short Description A PHP package for using WMI tools.
License MIT
Informations about the package wmi-scripting
WMI Scripting
Current Version: 0.1.1-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)
Install
composer require phpwintools/wmi-scripting
Basic Usage
Basic usage is to call ::query($connection = null)
on an available model from
https://github.com/phpwintools/wmi-scripting/tree/master/src/WmiScripting/Models.
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 https://github.com/tightenco/collect / Laravel 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
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.
All versions of wmi-scripting with dependencies
ext-json Version *
ext-com_dotnet Version *
tightenco/collect Version ^5.8
illuminate/contracts Version ^5.8