zinxan / native-desktop
Error tracking for NativePHP desktop apps, reported to NativeWatch.
Requires
- php: ^8.4
- zinxan/native-core: ^0.2
Requires (Dev)
None
Suggests
- nativephp/desktop: The NativePHP desktop runtime that this SDK reports for.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-01 16:48:07 UTC
README
Error tracking for NativePHP desktop apps. Errors go to NativeWatch.
composer require zinxan/native-desktop
Add the key of your NativeWatch project to .env:
NATIVEWATCH_KEY=nw_... NATIVEWATCH_URL=https://native.watch
Send a test error:
php artisan nativewatch:test
Reportable exceptions enter a bounded on-disk outbox. NativeWatch normally sends them after the response and retains failed network deliveries for a later retry. Capture and disk work have a cost; an unwritable outbox can cause an immediate send attempt. Read the offline delivery guide for retry, capacity and permanent rejection behavior.
Before shipping, review privacy and diagnostic consent. Use the desktop installation guide to verify a real stored event from your packaged app.
Report something yourself:
use ZXN\NativeWatch\Core\Laravel\NativeWatch; use ZXN\NativeWatch\Core\Level; NativeWatch::addBreadcrumb('sync', 'Started the sync'); NativeWatch::captureMessage('The disk is almost full', Level::Warning); NativeWatch::captureException($exception);
Publish the config to change sampling, scrubbing or breadcrumbs:
php artisan vendor:publish --tag=nativewatch-config