Nadi is a simple issue tracker for monitoring your application crashes. This package developed for Laravel framework.
- PHP 8.1 or higher
- Laravel 9.0 or higher
composer require nadi-pro/nadi-laravelThen run the install command:
php artisan nadi:installThis will:
- Publish the
nadi.phpconfiguration file to yourconfig/directory - Automatically download and install the Nadi Shipper binary to
vendor/bin/
If you don't want to install the shipper binary automatically (e.g., you're using the HTTP transporter only), use the --skip-shipper flag:
php artisan nadi:install --skip-shipperAfter installation, configure your Nadi credentials in config/nadi.php or via environment variables:
NADI_API_KEY=your-sanctum-token
NADI_APP_KEY=your-application-keyThe Nadi Shipper is a lightweight Go binary that monitors a directory for JSON log files and forwards them to the Nadi API. It's automatically installed during php artisan nadi:install.
The shipper binary is installed at:
vendor/bin/shipper
You can also manage the shipper binary programmatically:
use Nadi\Laravel\Shipper\Shipper;
$shipper = new Shipper();
// Check if installed
if ($shipper->isInstalled()) {
echo "Version: " . $shipper->getInstalledVersion();
echo "Path: " . $shipper->getBinaryPath();
}
// Install or update
$shipper->install();
// Check for updates
if ($shipper->needsUpdate()) {
$shipper->update();
}
// Execute shipper commands
$result = $shipper->send(config_path('nadi.yaml'));
$result = $shipper->test(config_path('nadi.yaml'));
$result = $shipper->verify(config_path('nadi.yaml'));
// Uninstall
$shipper->uninstall();| Operating System | Architectures |
|---|---|
| Linux | amd64, 386, arm64 |
| macOS (Darwin) | amd64, arm64 |
| Windows | amd64 |
# Install Nadi (publishes config + installs shipper)
php artisan nadi:install
# Install without shipper binary
php artisan nadi:install --skip-shipper
# Force overwrite existing config
php artisan nadi:install --force
# Test API connectivity
php artisan nadi:test
# Verify configuration
php artisan nadi:verifyImportant: Nadi captures and transmits application error data including exception messages, stack traces, SQL queries, HTTP request details, and custom content. This data may contain Personally Identifiable Information (PII).
As the consumer, you are responsible for:
- Sanitizing or redacting PII from entry content
- Filtering sensitive HTTP headers (e.g.,
Authorization,Cookie) from captured data - Ensuring compliance with your organization's data handling policies (GDPR, HIPAA, SOC2, etc.)
- Using HTTPS endpoints for all transporters in production environments
See SECURITY.md for vulnerability reporting and security considerations.
Refer to documentation for detailed installation and usage instructions.