Download the PHP package labor-digital/sentry-php without Composer

On this page you can find all versions of the php package labor-digital/sentry-php. 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 sentry-php

LABOR - Sentry.io wrapper

This package is a wrapper for the sentry.io.

It will also provide support for our sentry-release pipeline script to automatically. It will inherit all required information, like the dsn or the release from a shared config file.

Requirements

Installation

Install this package using composer:

Usage

You can use this library, like you would use the sentry PHP sdk, however it will check if it is actually needed by your environment. It uses either the SENTRY_ACTIVE > 0 or PROJECT_ENV === "prod" environment variables to detect if sentry logging should be enabled. If you want to force the state, you can always use the Sentry::manualActivation() method to set it manually.

Before you start your logging, you need to provide the configuration through Sentry::setSentryConfig(). Additionally, the sentry configuration can be provided as "config.json" inside the package's vendor directory. (e.g /project/vendor/labor-digital/sentry-php/config.json) Note: You need to wrap the config in the "sdk" key in the JSON object. Note2: Keep in mind, this is the internal bridge used by the sentry-release pipeline.

Available methods

Global errors

The default PHP implementation of sentry will automatically listen to global exceptions and errors. This package disables the automatic global exception handling. You can activate it using the Sentry::registerGlobalHandler() method.

Pipeline integration

As mentioned multiple times above, the wrapper integrates seamlessly with our sentry-release pipeline. This means, the provided composer plugin will automatically detect the sentry-configuration-file.json in your build artifacts and create a config.json for the wrapper to read at runtime. The plugin can be configured through environment variables:

Postcardware

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: LABOR.digital - Fischtorplatz 21 - 55116 Mainz, Germany

We publish all received postcards on our company website.


All versions of sentry-php with dependencies

PHP Build Version
Package Version
Requires composer-plugin-api Version ^1.0 || ^2.0
composer-runtime-api Version ^2.0
sentry/sdk Version ^3.1.1
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 labor-digital/sentry-php contains the following files

Loading the files please wait ....