Non-blocking Windows Registry Access in PHP

Learn how to read values from the Windows Registry.

AMPHP is a collection of event-driven libraries for PHP designed with fibers and concurrency in mind. amphp/windows-registry provides asynchronous access to the Windows Registry.

Release License


This package can be installed as a Composer dependency.

composer require amphp/windows-registry


WindowsRegistry has the two static methods listKeys and read:

  • listKeys fetches all sub-keys of one key.
  • read reads the value of the key. Note that read doesn’t convert any values and returns them as they’re printed by reg query %s.


amphp/windows-registry follows the semver semantic versioning specification like all other amphp packages.


If you discover any security related issues, please email [email protected] instead of using the issue tracker.


The MIT License (MIT). Please see LICENSE for more information.