PHPackages                             arty/probe-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. arty/probe-bundle

ActiveSymfony-bundle

arty/probe-bundle
=================

A Symfony bundle to create Probes

v1.4.0(4mo ago)11.1k↓44.4%MITPHPPHP ^8.3CI passing

Since Jan 4Pushed 4mo agoCompare

[ Source](https://github.com/ArthurJCQ/probe-bundle)[ Packagist](https://packagist.org/packages/arty/probe-bundle)[ RSS](/packages/arty-probe-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (11)Versions (7)Used By (0)

ArtyProbeBundle
===============

[](#artyprobebundle)

A Symfony bundle to create and run diagnostic probes.

Installation
------------

[](#installation)

Add the bundle to your project via Composer:

```
composer require arty/probe-bundle
```

If you are not using Symfony Flex, you will need to register the bundle manually in `config/bundles.php`:

```
return [
    // ...
    Arty\ProbeBundle\ArtyProbeBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

### YAML Configuration

[](#yaml-configuration)

You can configure the alerting system to be notified when a probe fails. Create a configuration file at `config/packages/arty_probe.yaml`:

```
arty_probe:
    probe_status_history_class: App\Entity\ProbeStatusHistory # Adjust this to match the class your application will use
    alerting:
        enabled: true
        to: "admin@example.com"
        from_address: "no-reply@example.com"
        from_name: "Probe System"
        subject: "Probe Failure Alert"
        # template: "@ArtyProbe/alerting/failure.html.twig" # Optional: customize the email template
```

### Create the Entity

[](#create-the-entity)

Make it extend the base `Arty\ProbeBundle\Entity\ProbeStatusHistory` :

```
