Download the PHP package coderstephen/windows-registry without Composer
On this page you can find all versions of the php package coderstephen/windows-registry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coderstephen/windows-registry
More information about coderstephen/windows-registry
Files in coderstephen/windows-registry
Package windows-registry
Short Description A small library for accessing and manipulating the Windows registry
License Apache-2.0
Informations about the package windows-registry
Windows Registry Wrapper
A small library for accessing and manipulating the Registry on Microsoft Windows systems. For that one time that you need to access the Windows Registry in a PHP application.
This library can be (and has been) used in production code, but please consider reading the disclaimer below before using.
Features
- Read and write access to any hive, key, or value in the registry (that you have permissions to)
- Automatic conversion between all registry value data types to PHP scalar types
- Lazy-loaded iterators over lists of values and recursive iterators over keys and subkeys
- Ability to connect to registries on remote computers using a remote WMI (Windows Management Instrumentation) connection (see Microsoft's docs on how to connect to WMI remotely for details)
Requirements
- Microsoft Windows (Vista or newer) or Windows Server (Windows Server 2003 or newer)
- PHP com_dotnet extension
Installation
Use Composer:
Documentation
Full API documentation is available online here.
Examples
Below is an example of creating a new registry key with some values and then deleting them.
You can also iterate over subkeys and values using built-in iterators:
Disclaimer
Messing with the Windows Registry can be dangerous; Microsoft has plenty of warnings about how it can destroy your installation. Not only should you be careful when accessing the Registry, this library is not guaranteed to be 100% safe to use and free of bugs. Use discretion, and test your code in a virtual machine if possible. I am not liable for any damages caused by this library. See the license for details.
All versions of windows-registry with dependencies
ext-com_dotnet Version *