{ "html": "
\n

Installation

\n

There are various ways to install the PHP integration for Sentry. The\nrecommended way is to use Composer:

\n
$ composer require "sentry/sentry"\n
\n
\n

Alternatively you can manually install it:

\n
    \n
  1. Download and extract the latest sentry-php archive\nto your PHP project.

    \n
  2. \n
  3. Require the autoloader in your application:

    \n
    require_once '/path/to/Raven/library/Raven/Autoloader.php';\nRaven_Autoloader::register();\n
    \n
    \n
  4. \n
\n
\n\n\n
\n

Symfony 2+

\n

Install the sentry/sentry-symfony package:

\n
$ composer require sentry/sentry-symfony\n
\n
\n

Enable the bundle in app/AppKernel.php:

\n
<?php\nclass AppKernel extends Kernel\n{\n    public function registerBundles()\n    {\n        $bundles = array(\n            // ...\n\n            new Sentry\\SentryBundle\\SentryBundle(),\n        );\n\n        // ...\n    }\n\n    // ...\n}\n
\n
\n

Add your DSN to app/config/config.yml:

\n
sentry:\n    dsn: "___DSN___"\n
\n
\n
\n", "link": "https://docs.getsentry.com/clients/php/integrations/symfony2/", "id": "php-symfony2", "name": "Symfony2" }