helppc / supervisor-bundle
Manage your supervisor instance in your Symfony5 application.
Installs: 40
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.4|^8
- nyholm/psr7: ^1.3
- php-http/client-common: ^2.0
- php-http/discovery: ^1.0
- php-http/httplug: ^2.0
- php-http/message-factory: ^1.0
- psr/http-message: ^1.0
- supervisorphp/supervisor: ^4.0
- symfony/framework-bundle: ^4.4 || ^5.1
- symfony/http-client: ^4.4 || ^5.1
- symfony/http-foundation: ^4.4 || ^5.1
- symfony/templating: ^4.4 || ^5.1
- symfony/translation: ^4.4 || ^5.1
- symfony/yaml: ^4.4 || ^5.1
Requires (Dev)
- phpstan/phpstan: ^0.12.48
Suggests
- php-http/httplug-bundle: to provide required HTTP client with ease.
README
Symfony bundle which manage supervisor process. Bundle is implemented using the supervisorphp/supervisor library.
Status
This package is currently in the active development.
Requirements
- PHP 7.4 or greater
- Symfony 5.x
Installation
-
Require the bundle and a PSR 7/17 implementation with Composer:
composer require helppc/supervisor-bundle nyholm/psr7
NOTE: This bundle requires a PSR 7/17 implementation to operate. We recommend that you use nyholm/psr7. Check out this document if you wish to use a different implementation.
-
Create the bundle configuration file under
config/packages/helppc_supervisor.yaml
. Here is a reference configuration file:supervisor: default_environment: all servers: all: localhost: scheme: http host: 127.0.0.1 port: 9006
-
Enable the bundle in
config/bundles.php
by adding it to the array:HelpPC\Bundle\SupervisorBundle\SupervisorBundle::class => ['all' => true]
-
Import the routes inside your
config/routes/helppc_supervisor.yaml
file:supervisor: resource: "@SupervisorBundle/Resources/config/routing.xml" prefix: /supervisor
❮ NOTE ❯ It is recommended to control the access to the authorization endpoint
so that only logged in users can approve authorization requests.
You should review your security.yml
file. Here is a sample configuration:
security: access_control: - { path: ^/supervisor, roles: IS_AUTHENTICATED_REMEMBERED }
Reporting issues
Use the issue tracker to report any issues you might have.
License
See the LICENSE file for license rights and limitations (MIT).