pieceofcake2 / sentry
Sentry error and exception handler for CakePHP 2
Requires
- php: ^8.0
- composer/installers: ^1.0 || ^2.0
- pieceofcake2/cakephp: ^2.12
- sentry/sentry: ^4.11
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.6
- pieceofcake2/app: ^2.2
- pieceofcake2/phpcs-cakephp2: ^1.1
- pieceofcake2/phpstan-cakephp2: ^1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
pieceofcake2/sentry reports the errors and uncaught exceptions of a CakePHP 2 application
to Sentry. It provides an error handler that extends CakePHP's
ErrorHandler, so errors are still logged and rendered by CakePHP and sent to Sentry as well.
It also gives the URL that Content Security Policy violations are reported to in Sentry.
Documentation
- Website: https://pieceofcake2.github.io/sentry/ (日本語: https://pieceofcake2.github.io/sentry/ja/)
- Markdown: docs/README.md (日本語: docs/ja/README.md) (for AI tools and offline reading)
The Markdown documentation is also included in the Composer package, in the plugin's directory: plugins/Sentry/docs/README.md (the location depends on your installer-paths). Install the package with --dev if you only need it for development.
Requirements
- PHP 8.0+
- pieceofcake2/cakephp 2.12+
Installation
composer require pieceofcake2/sentry
Then load the plugin and register SentryErrorHandler as the error and exception handler.
See Installation and Configuration.
Contributing
See the contribution guidelines.
Origin
This package was created by pieceofcake2, which also maintains it. It is not a fork of another project and is not based on one.
License
MIT License. See LICENSE.