phpBuilt for PHP

Analytics & Monitoring
for PHP

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.

  • Laravel service provider with auto-discovery
  • Symfony bundle with auto-wired services
  • Works on vanilla PHP-FPM, RoadRunner, Swoole
  • PSR-3 logger implementation — pipe Monolog or any logger
  • Guzzle middleware for outgoing HTTP call tracing
  • PDO query tracing across MySQL, PostgreSQL, SQLite
php
1// In your app bootstrap (public/index.php)
2use JustAnalytics\JA;
3
4JA::init([
5 "api_key" => $_ENV["JUSTANALYTICS_API_KEY"],
6 "service_name" => "my-php-app",
7 "environment" => "production",
8]);
9
10// Laravel: register the service provider
11// Symfony: enable the bundle
Active Users
0+12%
Pageviews
0+8%
Errors
0resolved
Uptime
0%all green

Built for PHP applications

From Laravel monoliths to slim Symfony APIs to legacy PHP, the same composer package covers them all.

PDO query tracing

Wraps PDO so every prepared statement becomes a span. MySQL, PostgreSQL, SQLite — same code path.

Framework integrations

Laravel service provider auto-discovered. Symfony bundle with config.yaml. Vanilla PHP via a single Middleware class.

Exception capture

Unhandled exceptions, set_exception_handler hooks, and Laravel/Symfony exception listeners — all captured with stack frames and locals.

PSR-compliant

Implements PSR-3 (Logger), PSR-15 (Middleware), PSR-7 (Request/Response). Plays nicely with any modern PHP stack.

Full analytics suite

Add the frontend script for cookie-free analytics, replay, and Web Vitals. One dashboard for client + server.

Alert rules

Per-route latency, error-rate, and queue-job alerts. Email, webhook, or PagerDuty integration.

Laravel setup

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"

Ready to simplify your stack?

Replace five tools with one platform. Start with the free tier or try Pro free for 7 days.

Start 7-Day Free Trial