A Windows specific extension to allow PHP to interact with Windows Services.

The win32service extension is a Windows specific extension that allows PHP to communicate with the Service
Control Manager to start, stop, register and unregister services, and even allows your PHP scripts to run as a

License: PHP License

Latest releases

Version Release Download
1.0.0 2020-11-30 win32service-1.0.0.tgz
0.4.2 2020-10-29 win32service-0.4.2.tgz
0.4.1 2019-06-26 win32service-0.4.1.tgz
0.4.0 2019-02-20 win32service-0.4.0.tgz
0.3.2 2019-02-14 win32service-0.3.2.tgz
Show all releases


Version Message
1.0.0 * Upgrade to PHP 8
* Add Win32ServiceException.
* Use ValueError if argument value is wrong.
* Use Win32ServiceException instead of return value.
* Convert some PHP Error and PHP Warning in Win32ServiceException.
The binary is also available here:
0.4.2 * Add contact information for send feedback
The binary is also available here:
0.4.1 * Remove the PHP version check. For fix the PHP crashes when `phpinfo` is called by CGI SAPI. (issue [#45](
* Fix PHP 7.4 errors in object example (issue [#46](
The binary is also available here:
0.4.0 * Add win32_send_custom_control, win32_set_service_exit_mode and win32_set_service_exit_code functions.
* Add severals constants.
* Add many configuration option for win32_create_service function.
The binary is also available here:
0.3.2 The website is

* Fix bugs.
The binary is also available here:
Show complete changelog