Download the PHP package comsolit/sentry_client without Composer
On this page you can find all versions of the php package comsolit/sentry_client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download comsolit/sentry_client
More information about comsolit/sentry_client
Files in comsolit/sentry_client
Package sentry_client
Short Description TYPO3 extension for PHP error and exception logging with Sentry, https://sentry.io
License GPL-3.0+
Informations about the package sentry_client
Sentry Client for TYPO3
A TYPO3 extension for PHP exception logging with Sentry, https://www.sentry.io
Logs frontend PHP errors and exceptions to your Sentry instance. Note that logging backend issues is not yet supported by TYPO3 (it's on the todo list for v9, according to core developer Markus Klein).
Based on the official Sentry PHP client,
sentry/sentry
.
Installation
-
Add something like this to your project's
composer.json
, and runcomposer install
: - Make sure your
typo3conf/LocalConfiguration.php
contains something like this in theSYS
section:
Alternatively, you can set those values
via the Install Tool
or in typo3conf/AdditionalConfiguration.php
.
Configuration
Set the Sentry DSN
(e.g. https://public_key:[email protected]/project-id
)
in the Extension Manager
.
This will be added in your typo3conf/LocalConfiguration.php
file at:
NOTE: For professional deployments you should consider using something like
phpdotenv to manage your
secrets instead of using the Extension Manager, and leave your
LocalConfiguration
under version control.
JavaScript Error Logging
For logging your JavaScript errors to Sentry see the JavaScript Sentry docs.
If you include your JavaScript sources via TypoScript it can be handy to avoid
hard-coding and define a SENTRY_DSN_PUBLIC
value in your system environment
(e.g. via a .env
file read by phpdotenv).
You can read the value in TypoScript using the getenv
command
like this:
Development
Your contributions are welcome! Please fork the repo, make your changes, and open a pull request.