← All platforms

PHP error tracking

Not every PHP app comes with a framework. The Sentry PHP SDK works with Telebugs either way. Your error reports stay on your server.

~/hoofnotes  composer require sentry/sentry
Generating autoload files
~/hoofnotes  nvim check-notes.php
<?php
require_once __DIR__ . '/vendor/autoload.php';
\Sentry\init([
// Copy the complete Telebugs DSN, key and path included.
'dsn' => 'YOUR_TELEBUGS_DSN',
]);
// Remove this test once it appears in Telebugs.
try {
throw new \RuntimeException('Hello from Hoof Notes');
} catch (\Throwable $error) {
\Sentry\captureException($error);
}
~/hoofnotes  php check-notes.php

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep sentry/sentry and change its DSN to Telebugs. Your existing error reporting sends to your server. No Sentry account needed.

Do I have to catch every exception?

No. The SDK can report uncaught exceptions automatically. If your code catches one, you can still send it with \Sentry\captureException. The PHP backtrace comes along.

Does this work with Laravel or Symfony?

Yes. We support Laravel and Symfony through their Sentry integrations. They connect the framework’s exception handling to Telebugs.