PHP and Laravel

Install composer require sentry/sentry-laravel

Laravel has a first-party package; other PHP apps use sentry/sentry. Both report to Blipit with the DSN swapped.

1Laravel

sh
composer require sentry/sentry-laravel
php artisan sentry:publish --dsn=https://<public key>@in.blipit.io/<project id>
.env
SENTRY_LARAVEL_DSN=https://<public key>@in.blipit.io/<project id>
SENTRY_TRACES_SAMPLE_RATE=0.2

2Plain PHP or Symfony

sh
composer require sentry/sentry
php
\Sentry\init(["dsn" => "https://<public key>@in.blipit.io/<project id>", "environment" => "production", "release" => "myapp@1.4.2"]);

3Check it works

Open Issues in app.blipit.io. The first event appears within a few seconds, grouped into an issue, and the people in charge get an email.

sh
php artisan sentry:test

Stuck? Email support@blipit.io. Keys and the exact DSN for each project are under API keys in app.blipit.io.