Search by

Sentry error and exception handler for CakePHP 2

Package info

github.com/pieceofcake2/sentry

Type:cakephp-plugin

pkg:composer/pieceofcake2/sentry

Statistics

Installs: 3 694

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.0 2026-10-19 06:01 UTC

This package is auto-updated.

Last update: 2026-10-19 06:01:24 UTC


README

GitHub License Packagist Version PHP CakePHP PHPStan CI Codecov

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

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.