Download the PHP package marcosimbuerger/symfony-monitoring-satellite-bundle without Composer
On this page you can find all versions of the php package marcosimbuerger/symfony-monitoring-satellite-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marcosimbuerger/symfony-monitoring-satellite-bundle
More information about marcosimbuerger/symfony-monitoring-satellite-bundle
Files in marcosimbuerger/symfony-monitoring-satellite-bundle
Package symfony-monitoring-satellite-bundle
Short Description Monitoring Satellite for Symfony
License MIT
Homepage https://github.com/marcosimbuerger/symfony-monitoring-satellite-bundle
Informations about the package symfony-monitoring-satellite-bundle
Monitoring Satellite for Symfony 🛰
The Monitoring Satellite provides data about your Symfony application for the Monitoring Station.
Installation
Install the bundle
Enable the bundle
Check your config/bundles.php
. The MonitoringSatelliteBundle should have been added automatically. If not, add it manually.
Configuration
Import the route
Import the MonitoringSatelliteBundle's route in your Symfony application.
Configure your application's security.yml
In order to secure the MonitoringSatelliteBundle, you must do so in the security file.
The security.yml
file is where the basic security configuration for your application is contained.
For the encoders, define the Symfony\Component\Security\Core\User\User
class. This internal class is used by Symfony to represent in-memory users.
Under the providers section, create a monitoring_satellite_auth_provider
provider and configure an in-memory user with a password.
Use bin/console security:encode-password
to generate the password hash.
Define the authentication under the firewall section. Add the pattern for the MonitoringSatelliteBundle's route and define the previous created provider for the basic authentication.
The _accesscontrol section is where you specify the credentials necessary for users trying to access specific parts of your application. Define the route there again.
Below is an example of the configuration necessary to use the MonitoringSatelliteBundle in your application:
Test
Call /monitoring-satellite/v1/get
.
It should be protected by basic authentication and return the app data after successful authentication.
Add the Satellite to the Station
Add this Monitoring Satellite to the Monitoring Station. See documentation of the Monitoring Station.
License
This bundle is released under the MIT license. See the included LICENSE file for more information.
All versions of symfony-monitoring-satellite-bundle with dependencies
symfony/http-foundation Version ^4.4|^5.0
symfony/http-kernel Version ^4.4|^5.0