Download the PHP package dbannik/sentry-symfony without Composer

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

Sentry

Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions

Official Sentry SDK for Symfony

Stable release License Total Downloads Monthly Downloads

CI Coverage Status Discord

This is the official Symfony SDK for Sentry.

Getting Started

Using this sentry-symfony SDK provides you with the following benefits:

Install

To install the SDK you will need to be using Composer in your project. To install it please see the docs.

If you're using the Symfony Flex Composer plugin, you might encounter a message similar to this:

Just type y, press return, and the procedure will continue.

Caution: Due to a bug in the SensioFrameworkExtra bundle, affecting version 6.0 and below, you might run into a missing Nyholm\Psr7\Factory\Psr17Factory::class error while executing the commands mentioned above. If you are not using the PSR-7 bridge, you can work around this issue by changing the configuration of the bundle as follows:

For more details about the issue see https://github.com/sensiolabs/SensioFrameworkExtraBundle/pull/710.

Enable the Bundle

If you installed the package using the Flex recipe, the bundle will be automatically enabled. Otherwise, enable it by adding it to the list of registered bundles in the Kernel.php file of your project:

The bundle will be enabled in all environments by default. To enable event reporting, you'll need to add a DSN (see the next step).

Configure

Add the Sentry DSN of your project. If you're using Symfony 3.4, add the DSN to your app/config/config_prod.yml file. For Symfony 4 or newer, add the DSN to your config/packages/sentry.yaml file.

Keep in mind that by leaving the dsn value empty (or undeclared), you will disable Sentry's event reporting.

The parameter options allows to fine-tune exceptions. To discover more options, please refer to the Unified APIs options and the PHP specific ones.

Optional: use custom HTTP factory/transport

Since the SDK 2.0 uses HTTPlug to remain transport-agnostic, you need to install two packages that provide php-http/async-client-implementation and psr/http-message-implementation.

This bundle depends on sentry/sdk, which is a metapackage that already solves this need, requiring our suggested HTTP packages: the Symfony HTTP client (symfony/http-client) and Guzzle's message factories (http-interop/http-factory-guzzle).

If you want to use a different HTTP client or message factory, you can override the sentry/sdk package by adding the following to your composer.json after the require section:

For example when you want to use Guzzle's components:

If you don't have a compatible HTTP client and/or message factory implementation installed php-http/discovery will try to install it for you using a Composer plugin.

Maintained versions

Upgrading to 4.0

The 4.0 version of the bundle uses the newest version (3.x) of the underlying Sentry SDK. If you need to migrate from previous versions, please check the UPGRADE-4.0.md document.

Custom serializers

The option class_serializers can be used to send customized objects serialization.

Several serializers can be added and the serializable check is done by using the instanceof type operator. The serializer must implement the __invoke method, which needs to return an array, containing the information that should be send to Sentry. The class name is always sent by default.

Serializer example:

Contributing to the SDK

Please refer to CONTRIBUTING.md.

Getting help/support

If you need help setting up or configuring the Symfony SDK (or anything else in the Sentry universe) please head over to the Sentry Community on Discord. There is a ton of great people in our Discord community ready to help you!

Resources

License

Licensed under the MIT license, see LICENSE


All versions of sentry-symfony with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2||^8.0
guzzlehttp/psr7 Version ^1.7 || ^2.0
jean85/pretty-package-versions Version ^1.5 || ^2.0
sentry/sdk Version ^3.6
sentry/sentry Version ^3.22.1
symfony/cache-contracts Version ^3.4.2
symfony/config Version ^6.0||^7.0
symfony/console Version ^6.0||^7.0
symfony/dependency-injection Version ^6.0||^7.0
symfony/event-dispatcher Version ^6.0||^7.0
symfony/http-kernel Version ^6.0||^7.0
symfony/polyfill-php80 Version ^1.22
symfony/psr-http-message-bridge Version ^6.4||^7.0
symfony/security-core Version ^6.0||^7.0
symfony/security-http Version ^6.0||^7.0
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 dbannik/sentry-symfony contains the following files

Loading the files please wait ....