PHP code example of studioespresso / craft-flare

1. Go to this page and download the library: Download studioespresso/craft-flare library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

studioespresso / craft-flare example snippets




return [
    '*' => [
        'enabled' => false,
        'apiKey' => \craft\helpers\App::env('FLARE_API_KEY'),
        'excludedExceptions' => [
            ErrorException::class,
        ]
    ],
    'production' => [
        'enabled' => true,
    ]
];

return [
    // If you’re app.php contains multiple environments, make sure to add this to the ‘*’ one.
    'bootstrap' => [
        'studioespresso\flare\Bootstrap'
    ]
]
shell
cd /path/to/my-project.test
(ddev/php) composer