Installation
Follow these steps to install and configure the Laritor client in your Laravel application.
β Step 1: Install the Package
Section titled ββ Step 1: Install the PackageβRun the following command to add the Laritor client to your project:
composer require binarybuilds/laritor-clientπ Step 2: Configure Environment Variables
Section titled βπ Step 2: Configure Environment VariablesβAdd the following variables to your .env file:
LARITOR_ENABLED=trueLARITOR_INGEST_ENDPOINT=your-ingest-urlLARITOR_BACKEND_KEY=your-backend-keyReplace
your-ingest-urlandyour-backend-keywith the values provided in your Laritor dashboard during setup.
π Step 3: Sync After Deployment
Section titled βπ Step 3: Sync After Deploymentβ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.
php artisan laritor:syncπ‘ You can automate this by adding it to your post-deploy hook or CI/CD pipeline.
π Step 4 (Optional): Collect Server Metrics
Section titled βπ Step 4 (Optional): Collect Server MetricsβTo monitor CPU, memory, and disk usage, schedule the following command to run every minute via Laravel Scheduler or your system cron:
php artisan laritor:send-metricsπ Thatβs It!
Section titled βπ Thatβs It!β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 β