Install Monitoring in Laravel
Requirements
Section titled “Requirements”Before installing Uplinkr, make sure your environment meets these requirements:
- PHP: 8.2 or higher
- Laravel: 11.x or 12.x
- ext-openssl
Install via Composer
Section titled “Install via Composer”Install the package with Composer:
composer require scherhak/uplinkrPublish Configuration and Language Files
Section titled “Publish Configuration and Language Files”After installation, run the install command to publish configuration and language files:
php artisan uplinkr:installThis 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:
php artisan vendor:publish --tag=uplinkr-configphp artisan vendor:publish --tag=uplinkr-langOptional: Enable Scheduler Integration
Section titled “Optional: Enable Scheduler Integration”To automatically enable scheduler integration during installation, use the --scheduler flag:
php artisan uplinkr:install --schedulerThis 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 projectsuplinkr: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.