Win32Service Extension for PHP
Table des matières
🇫🇷 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
Related project
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
- Win32service 1.0.2 is out!
- Win32Service 1.0.1 is available
- Win32Service 1.0.0 is available
- Win32Service 1.0.0-alpha2 is available
- The next version of Win32Service
- Win32Service for PHP8
- There comes the time to upgrade.
- Win32Service 0.4 for PHP 7.4
- [Win32Service] PHP 7.0 and 7.1 support
- [Win32Service] Comment utiliser les paramètres de Récupération
- Win32Service Bundle
- Nouveautés de Win32Service 0.4
- Projet Win32Service
- The new Win32Service library
- Extension PHP pour réaliser des services Windows