Skip to content

Installation

Follow these steps to install and configure the Laritor client in your Laravel application.

Run the following command to add the Laritor client to your project:

Terminal window
composer require binarybuilds/laritor-client

Add the following variables to your .env file:

LARITOR_ENABLED=true
LARITOR_INGEST_ENDPOINT=your-ingest-url
LARITOR_BACKEND_KEY=your-backend-key

Replace your-ingest-url and your-backend-key with the values provided in your Laritor dashboard during setup.

Run the Laritor sync command after every deployment. This ensures scheduled tasks, database schema changes, custom health checks, and server metadata are up to date in Laritor.

Terminal window
php artisan laritor:sync

πŸ’‘ You can automate this by adding it to your post-deploy hook or CI/CD pipeline.

To monitor CPU, memory, and disk usage, schedule the following command to run every minute via Laravel Scheduler or your system cron:

Terminal window
php artisan laritor:send-metrics

Once you’ve completed the steps above, your Laravel application will start sending events to Laritor.

You can now:

  • View incoming events in your Laritor dashboard
  • Customize what data gets tracked using filters and environment settings
  • Set up alerts, dashboards, and more!

πŸ‘‰ Next: Customization & Filtering β†’