Quick Start
Get Nadi up and running in your application in under 5 minutes.
Prerequisites
- A Nadi account at nadi.pro
- An application created in the Nadi dashboard
- Your API Key and Application Key
Step 1: Get Your Keys
- Log in to the Nadi Dashboard
- Create your API Key at API Tokens
- Create a new application or select an existing one
- Copy your Application Key from the application page details (e.g.,
https://nadi.pro/applications/<your-app-uuid>)
INFO
Your API Key authenticates requests to the Nadi API. Your Application Key identifies which application the errors belong to.
Step 2: Install the SDK
Choose the SDK for your platform:
composer require nadi-pro/nadi-laravel
php artisan nadi:install
# During installation, you will be prompted for your API Key and App Keycomposer require nadi-pro/nadi-phpnpm install @nadi-pro/browser# Download the latest release from:
# https://github.com/nadi-pro/nadi-wordpress/releases/latest
# Upload via WordPress > Plugins > Add New > Upload PluginStep 3: Configure the SDK
NADI_ENABLED=true
NADI_DRIVER=log<?php
use Nadi\Client;
$client = new Client([
'transporter' => 'file',
'storagePath' => '/var/log/nadi',
]);import { init } from '@nadi-pro/browser'
init({
apiKey: 'your-api-key',
appKey: 'your-application-key',
})Navigate to Settings > Nadi in WordPress admin
Enter your API Key and Application Key
Click "Save Changes"Credentials in nadi.yaml
API credentials (apiKey and appKey) are configured in nadi.yaml for the Shipper agent, not in your SDK or .env file. See Step 4 below for details.
Step 4: Install Shipper
The Shipper agent reads log files and sends them to Nadi. Install it on the same server as your application:
sudo bash < <(curl -sL https://raw.githubusercontent.com/nadi-pro/shipper/master/install)powershell -command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/nadi-pro/shipper/master/install.ps1', '%TEMP%\install.ps1') && %TEMP%\install.ps1 && del %TEMP%\install.ps1"Configure Shipper
Edit the Shipper configuration file:
| OS | Location |
|---|---|
| Linux | /opt/nadi-pro/shipper/nadi.yaml |
| macOS | /usr/local/nadi-pro/shipper/nadi.yaml |
| Windows | C:\ProgramData\Nadi-Pro\Shipper\nadi.yaml |
nadi:
endpoint: https://nadi.pro/api/
apiKey: your-api-key
appKey: your-application-key
storage: /var/log/nadi # Path where your app writes logsStep 5: Test the Integration
Laravel
Use the built-in Artisan commands to verify your setup:
# Test the API connection
php artisan nadi:test
# Verify the App Key
php artisan nadi:verifyTrigger a Test Error
You can also trigger a test error to verify end-to-end error tracking:
// In a route or controller
Route::get('/test-nadi', function () {
throw new \Exception('Test error from Nadi integration');
});<?php
throw new \Exception('Test error from Nadi integration');// In your application code
throw new Error('Test error from Nadi integration')// In a plugin or theme
throw new Exception('Test error from Nadi integration');Check the Nadi dashboard - you should see the error appear within a few seconds!
Next Steps
Now that you have Nadi set up, explore these features:
- Laravel SDK - Full Laravel integration guide
- PHP SDK - Core PHP SDK documentation
- JavaScript SDK - Browser SDK with Web Vitals
- Shipper Configuration - Advanced Shipper options
- Sampling - Control which errors are captured
- Alerts - Set up notifications for critical errors
Troubleshooting
Errors not appearing in dashboard?
- Check log file permissions - Ensure your app can write to the log directory
- Verify Shipper is running - Run
shipper --statusto check - Check API keys - Ensure both API Key and App Key are correct
- Review Shipper logs - Check for connection errors
Need help?
- Check our Troubleshooting Guide
- Contact support at [email protected]