Win32Service Extension for PHP

Win32Service Logo
Win32Service Logo

🇫🇷 Win32Service est une extension pour PHP. Elle permet d’exécuter un script PHP en tant que service Windows. Le service est enregistré dans le gestionnaire de service de Windows. Cette extension est disponible uniquement pour Windows. C'est une alternative à SystemD et SupervisorD.

🇬🇧 Win32Service is a PHP extension. It allows you to run a PHP script as a Windows service. The service is registered in the Windows service manager. This extension is only available for Windows. It's an alternative of SystemD and SupervisorD.

Official Website #Win32Service on Twitter
Download Project on Github
Documentation 🇬🇧 Documentation 🇫🇷
 
 

FAQ

With the PHP extension Win32Service, you can start any PHP Script into the Windows service manager.

To change the service status, use the win32_set_service_status function to send the current state to the service manager.

Your PHP Script is registered in Windows service manager. You can use the settings provided by Windows to run action after a crash of your service.

In your PHP service script use the win32_get_last_control_message function to get the latest message received from service manager.

Yes. Use the Windows command sc control <your service name> <control_number>

Your PHP script used on service, must manage the custom control value.

Another question? Or need custom help? Contact me

Service Library

🇫🇷 Cette librairie PHP vous permet l'utilisation de l'extension plus simplement avec une interface orienté objet.

🇬🇧 This PHP library allows you to use the extension more simply with an object oriented interface.

Win32ServiceBundle

🇫🇷 Ce bundle permet de réduire la quantité de code nécessaire pour utiliser l'extension Win32Service dans un projet Symfony 4 et suivant.

🇬🇧 This bundle reduces the amount of code needed to use the Win32Service extension in a Symfony 4 and later project.

Last news

Commentaires