Download the PHP package mensbeam/catcher-awsnshandler without Composer
On this page you can find all versions of the php package mensbeam/catcher-awsnshandler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mensbeam/catcher-awsnshandler
More information about mensbeam/catcher-awsnshandler
Files in mensbeam/catcher-awsnshandler
Package catcher-awsnshandler
Short Description Amazon AWS SNS Message Handler for MensBeam's Catcher
License MIT
Informations about the package catcher-awsnshandler
AWSSNSHandler
AWSSNSHandler is a Throwable handler for use in Catcher, a Throwable and error handling library for PHP. It sends throwables and errors to Amazon SNS topics. Right now AWSSNSHandler only supports sending to standard topics.
Requirements
- PHP >= 8.1
- mensbeam/catcher ^2.1.2
- aws/aws-sdk-php ^3.283
Installation
Usage
For most use cases this library requires no configuration and little effort to integrate into non-complex environments:
That's it. It will automatically register Catcher as an exception, error, and shutdown handler and use AWSSNSHandler
as its sole handler. Like other Catcher handlers, AWSSNSHandler can be configured with a logger. When logging it behaves identically to JSONHandler. See the Catcher documentation for more info on how to configure a logger.
Documentation
MensBeam\Catcher\AWSSNSHandler
MensBeam\Catcher\AWSSNSHandler::getClient
Returns the Aws\Sns\SnsClient
the handler uses
MensBeam\Catcher\AWSSNSHandler::getTopicARN
Returns the AWS SNS topic ARN the handler sends messages to
MensBeam\Catcher\AWSSNSHandler::setClient
Replaces the Aws\Sns\SnsClient
the handler uses with one specified
MensBeam\Catcher\AWSSNSHandler::setTopicARN
Replaces the AWS SNS topic ARN the handler sends messages to with one specified