Skip to content

Install Monitoring in Laravel

Before installing Uplinkr, make sure your environment meets these requirements:

  • PHP: 8.2 or higher
  • Laravel: 11.x or 12.x
  • ext-openssl

Install the package with Composer:

Terminal window
composer require scherhak/uplinkr

After installation, run the install command to publish configuration and language files:

Terminal window
php artisan uplinkr:install

This copies the configuration file to config/uplinkr.php and the language files to resources/lang/vendor/uplinkr.

If you prefer to publish files manually, run:

Terminal window
php artisan vendor:publish --tag=uplinkr-config
php artisan vendor:publish --tag=uplinkr-lang

To automatically enable scheduler integration during installation, use the --scheduler flag:

Terminal window
php artisan uplinkr:install --scheduler

This sets 'enabled' => true in the scheduler section of your configuration.

You can also enable the scheduler later by editing config/uplinkr.php and setting:

'scheduler' => [
'enabled' => true,
]

When scheduler integration is enabled, Uplinkr adds two commands to Laravel’s scheduler:

  • uplinkr:project:run-probes --force - Runs all probes for all enabled projects
  • uplinkr:project:alert:decision - Checks probe results and triggers alerts based on configured thresholds. See the Alert decisions command.

These commands run based on scheduler.cron (default: every minute). See the Scheduler section for details.