Download the PHP package win32service/win32servicebundle without Composer
On this page you can find all versions of the php package win32service/win32servicebundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download win32service/win32servicebundle
More information about win32service/win32servicebundle
Files in win32service/win32servicebundle
Package win32servicebundle
Short Description Bundle for integrate the win32service/service-library into a Symfony Project
License MIT
Homepage https://win32service.mactronique.fr/bundle.html
Informations about the package win32servicebundle
Win32ServiceBundle
The bundle for use Service-Library and Win32Service PHP ext into a Symfony Project.
Install
Configure
Add file config/win32service.yaml
with this content:
Define the runner
For each service, add a sub-class of Win32Service\Model\AbstractServiceRunner
.
The sub-class must be configured in service with the tag win32service.runner
with an alias name corresponding to the service_id
.
Exemple with one thread
Extension configuration:
Sub-class:
Service configuration :
Exemple with many thread
Extension configuration:
Sub-class:
Service configuration :
Manage the service
Open an administrator cmd window and go to your project.
Register the service
For register all service, run this command:
For register only one service (without thread number) run:
For register only one service (with thread number) run:
Unregister the service
For unregister all service, run this command:
For unregister only one service (without thread number) run:
For unregister only one service (with thread number) run:
Sent action at your services
This command start all service (and all thread) defined in your project.
For sent the action for one service and all thread:
For sent the action for one thread of one service (work same if the service has only one thread):
All versions of win32servicebundle with dependencies
win32service/service-library Version ^1.0||1.x-dev
symfony/http-kernel Version ^5.4|^6.0
symfony/console Version ^5.4|^6.0
symfony/config Version ^5.4|^6.0
symfony/dependency-injection Version ^5.4|^6.0
symfony/event-dispatcher Version ^5.4|^6.0
symfony/yaml Version ^5.4|^6.0
symfony/framework-bundle Version ^5.4|^6.0