flawe/flare-bundle

Send symfony errors to Flare

Maintainers

Package info

github.com/f-lawe/flare-bundle

Type:symfony-bundle

pkg:composer/flawe/flare-bundle

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-04-23 19:57 UTC

This package is auto-updated.

Last update: 2026-04-23 20:34:28 UTC


README

Versions Downloads Licence GitHub Actions

Send Symfony errors to Flare! This project is the Symfony counterpart of the Laravel Flare package.

Installation

Install the package via composer:

composer require flawe/flare-bundle

Add the bundle to your Symfony application by adding it to the config/bundles.php file:

return [
    // ...
    Flawe\FlareBundle\FlareBundle::class => ['all' => true],
];

Add your Flare API key to your .env file:

FLARE_KEY=your-flare-key

And finally, add the file config/packages/flare.yaml and fill it with your settings:

flare:
    key: '%env(FLARE_KEY)%'
    trace: false
    censor:
        client_ips: true
        body_fields: []
        headers: []
        cookies: true
        session: true

The minimum configuration requires the key option.

Usage

The bundle will automatically report all errors to Flare.

On top of that, you can inject Flare to monitor perfomance:

namespace App\Controller;

use Spatie\FlareClient\Flare;
use Symfony\Component\HttpFoundation\Response;

class SomeController
{
    #[Route('/some-action')]
    public function someAction(Flare $flare): Response
    {
        $flare->application()->recordStart();
        // Do something
        $flare->application()->recordEnd();

        return new Response('Some Response');
    }
}