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.2 2022-11-04 win32service-1.0.2.tgz
1.0.1 2021-12-09 win32service-1.0.1.tgz
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
Show all releases


Version Message
1.0.2 * Rewrite some code (espectaly if/else instruction).
* Add more detail in exception message.
* Fix recovery settings error (issue [#71](
The binary is also available here:
1.0.1 * Allow all function reserved for cli SAPI on embed SAPI. (@EionRobb) (issue [#63](
* Update for PHP 8.1
The binary is also available here:
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:
Show complete changelog