mirror of
https://github.com/win32service/symfony-example.git
synced 2026-03-24 04:42:13 +01:00
master
Win32Service Bundle Example
This project use Symfony 4 and the Win32Service Bundle for integrate the Win32Service Extension into the project.
Requirements
For run this example, you need this:
- PHP 7.1 or newer
- The PHP extension Win32Service 0.4 or newer
- Composer for install the project dependencies
Install the project
After install PHP and the Win32Service extension, download this repository.
Unzip the archive content when you want.
Note: The path nost does not contains space or long name.
Execute the command
php composer.phar install -o
Read the code and configuration
Enable the bundle
Read into the config/bundles.php.
Configure the bundle
Read the configuration into the file
Extends the abstract class
Read the code into this class
Configure the service
Read the configuraion of the service
Manage Services
Register
Register the service before the starting with this command:
php bin\console win32service:register
Start
Now start the new service:
php bin\console win32service:action start
Stop
After a moment, stop the service:
php bin\console win32service:action stop
Unregister
When you want update the service settings or uninstall the project, execute this command :
php bin\console win32service:unregister
Releases
1
Languages
PHP
100%