Download the PHP package llewellyn-kevin/raygun-logger without Composer

On this page you can find all versions of the php package llewellyn-kevin/raygun-logger. 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 raygun-logger

Laravel package for logging errors to Raygun

Latest Version on Packagist Total Downloads GitHub Actions

This package serves as a wrapper around Raygun4php to make it quick and easy to get your Laravel project logging to Raygun.

Warning This package is being developed alongside and being used with production applications. But it is not tagged for with version 1.0 because we can only validate those particular use cases. We will want to catch any edge cases and finalize every base use case before encouraging users to use this in critical projects.

Installation

You can install the package via composer:

In your application's config/logging.php, add the raygun channel config and add it to the stack config:

Update your .env with the Raygun url and key you want to use:

You can test your install with a console command:

Or with a custom error message:

This will check for environment variables, report on any missing, and send an exception with default or custom text to Raygun so you can check to make sure it shows up.

Usage

Errors should be automatically sent to raygun via the stack. But if you need to manually send an exception to Raygun for any reason you can do that with the RaygunLogger facade:

You can add metadata to these requests in an associative array as well:

Note This is the main method of the entire package. So it enforces all core logic. This means Exception types that have been blacklisted or do not meet the level requirement will still be suppressed and NOT be sent to Raygun.

Filtering

You may not want every error to show up in Raygun. There are two ways to suppress an error:

  1. Blacklist the exception type

In the raygun-logger config, you will find a parameter called blacklist. Any exceptions added to this array will not be reported to Raygun. To append to this list, you will first have to publish the config:

  1. Setting error levels

You may wish to specify the log levels for various exceptions in your application. You can register these levels in the RaygunLogger facade:

Then you may update the raygun-logger config with the base level you wish to report on. Only exceptions with the specified level or higher will be sent to Raygun.

Testing

This package uses Pest for it's tests. For simplicity, there is a composer script to run the whole suite:

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.


All versions of raygun-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^9.0|^10.0
mindscape/raygun4php Version ^2.3
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 llewellyn-kevin/raygun-logger contains the following files

Loading the files please wait ....