Composer-installed SDK for Laravel, Symfony, and vanilla PHP-FPM. PDO queries, Guzzle HTTP calls, and unhandled exceptions are captured without touching your app code.
1// In your app bootstrap (public/index.php)2use JustAnalytics\JA;34JA::init([5"api_key" => $_ENV["JUSTANALYTICS_API_KEY"],6"service_name" => "my-php-app",7"environment" => "production",8]);910// Laravel: register the service provider11// Symfony: enable the bundle
From Laravel monoliths to slim Symfony APIs to legacy PHP, the same composer package covers them all.
Wraps PDO so every prepared statement becomes a span. MySQL, PostgreSQL, SQLite — same code path.
Laravel service provider auto-discovered. Symfony bundle with config.yaml. Vanilla PHP via a single Middleware class.
Unhandled exceptions, set_exception_handler hooks, and Laravel/Symfony exception listeners — all captured with stack frames and locals.
Implements PSR-3 (Logger), PSR-15 (Middleware), PSR-7 (Request/Response). Plays nicely with any modern PHP stack.
Add the frontend script for cookie-free analytics, replay, and Web Vitals. One dashboard for client + server.
Per-route latency, error-rate, and queue-job alerts. Email, webhook, or PagerDuty integration.
Composer require, set env vars. The service provider is auto-discovered.
# Install
composer require justanalytics/laravel
# .env
JUSTANALYTICS_API_KEY=your_api_key_here
JUSTANALYTICS_SERVICE_NAME=my-laravel-app
JUSTANALYTICS_ENVIRONMENT=production
# config/app.php — already auto-discovered, no manual registration needed.
# All routes, Eloquent queries, and Guzzle HTTP calls are now traced.
# Optional: publish the config to customize
php artisan vendor:publish --provider="JustAnalytics\Laravel\ServiceProvider"Replace five tools with one platform. Start with the free tier or try Pro free for 7 days.
Start 7-Day Free Trial