internexus/watcher-laravel

PHP code execution monitoring package for Laravel

Installs: 65

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/internexus/watcher-laravel

0.0.2 2021-04-13 17:48 UTC

This package is auto-updated.

Last update: 2025-10-14 03:27:53 UTC


README

PHP code execution monitoring package for Laravel.

Install

composer require internexus/watcher-laravel

Publish config

php artisan vendor:publish --provider="Internexus\WatcherLaravel\WatcherServiceProvider"

Middleware

Attach the WebMonitoringMiddleware on app/Http/Kernel.php:

/**
 * The application's route middleware groups.
 *
 * @var array
 */
protected $middlewareGroups = [
    'web' => [
        ...,
        \Internexus\WatcherLaravel\Middleware\WebRequestMonitoring::class,
    ],

    'api' => [
        ...,
        \Internexus\WatcherLaravel\Middleware\WebRequestMonitoring::class,
    ]

For Lumen

$app->register(\Internexus\WatcherLaravel\WatcherServiceProvider::class);

Configure the .env variable

WATCHER_API_KEY=[project token]

Check your environment

php artisan watcher:test