Download the PHP package ashsmith/magento-bugsnag-notifier-module without Composer

On this page you can find all versions of the php package ashsmith/magento-bugsnag-notifier-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento-bugsnag-notifier-module

Magento 2 Bugsnag Notifier

phpcs

This module integrates the Bugsnag notifier into Magento's exception handling. Any exception that is left unhandled and eventually caught within the Magento\Framework\App\Bootstrap::run method will then be notified to Bugsnag.

This works by using two plugins (interceptors) that are placed before the launch and catchException methods on any class that implement the Magento\Framework\AppInterface interface. Within the beforeLaunch plugin Bugsnag is initialised. You can optionally start a session which enables Bugsnag's stability score (requires their Standard package).

Installation

composer require ashsmith/magento-bugsnag-notifier-module ^2.0.0
bin/magento setup:upgrade

Configuration

To configure the Bugsnag Notifier you have two options:

1) Use the following environment variables:

2) Add the following configuration to: app/etc/env.php

Extending Bugsnag Metadata

If you wish to send additional data to Bugsnag that may help debug your Magento application, there are two events dispatched by this module which can be used to add additional metadata.

Event: bugsnag_init

bugsnag_init is dispatched when the module first initialises Bugsnag and a session is started. You'll be able to retrieve the Bugsnag client by doing: $observer->getData('client') which will give you an instance of \Bugsnag\Client. From there adding metadata can be done like so:

Alternatively you can register a callback which will be executed when an exception occurs to add additional information to the report:

Event: bugsnag_add_customer_data

This event allows you add additional customer data to the exception report, you can fetch the current customer data object by calling: $observer->getData('data').

This is an instance of \Magento\Framework\DataObject, so you can use the setData and getData properties to modify the object.

By default the module will only send the customers: ID, customer group, and a boolean whether or not they are logged in.


All versions of magento-bugsnag-notifier-module with dependencies

PHP Build Version
Package Version
Requires composer/composer Version ^1.10.22
bugsnag/bugsnag Version ^3.19
magento/framework Version ^101||^102||^103
magento/module-customer Version ^101||^102||^103
magento/module-store Version ^101||^102
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ashsmith/magento-bugsnag-notifier-module contains the following files

Loading the files please wait ....