2017 © Pedro Peláez
 

yii2-extension yii2-sentry

Yii 2 extension for Sentry

image

jackshadow/yii2-sentry

Yii 2 extension for Sentry

  • Sunday, October 22, 2017
  • by JackShadow
  • Repository
  • 1 Watchers
  • 1 Stars
  • 131 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 20 Forks
  • 0 Open issues
  • 23 Versions
  • 1 % Grown

The README.md

Yii 2 - Sentry Error Logger

Sentry provides real-time crash reporting for web apps, both server and client side. This is a Yii 2 extension which lets you integrate your projects to Sentry and log PHP and JavaScript errors., (*1)

Brought to you by Mito., (*2)

Latest Stable Version Total Downloads License, (*3)

Build Status Coverage Status, (*4)

Installation

The preferred way to install this extension is through composer., (*5)

Either run, (*6)

php composer.phar require --prefer-dist mito/yii2-sentry "~1.0.0"

or add the following line to the require section of your composer.json file:, (*7)

"mito/yii2-sentry": "~1.0.0"

Requirements

Yii 2 and above. Sentry 8 and above., (*8)

You can use this extension with both the hosted and on-premise version of Sentry., (*9)

Usage

Once the extension is installed, set your configuration in common config file:, (*10)

    'components' => [

        'sentry' => [
            'class' => 'mito\sentry\Component',
            'dsn' => 'YOUR-PRIVATE-DSN', // private DSN
            'environment' => 'staging', // if not set, the default is `production`
            'jsNotifier' => true, // to collect JS errors. Default value is `false`
            'jsOptions' => [ // raven-js config parameter
                'whitelistUrls' => [ // collect JS errors from these urls
                    'http://staging.my-product.com',
                    'https://my-product.com',
                ],
            ],
        ],
        'log' => [
            'targets' => [
                [
                    'class' => 'mito\sentry\Target',
                    'levels' => ['error', 'warning'],
                    'except' => [
                        'yii\web\HttpException:404',
                    ],
                ],
            ],
        ],

    ],

To skip collecting errors in the development environment, disable the component with this parameter:, (*11)

    'components' => [
        'sentry' => [
            'enabled' => false,
        ],
    ],

License

Code released under MIT License., (*12)

Contact

Should you have any comments or questions, please contact us at info@mito.hu., (*13)

The Versions

01/08 2017
05/05 2016

0.6.0

0.6.0.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

The Development Requires

extension yii2 sentry

02/05 2016

0.5.2

0.5.2.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

extension yii2 sentry

29/04 2016

0.5.1

0.5.1.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

extension yii2 sentry

28/04 2016

0.5.0

0.5.0.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

extension yii2 sentry

26/04 2016

0.4.2

0.4.2.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

extension yii2 sentry

26/04 2016

0.4.1

0.4.1.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

extension yii2 sentry

26/04 2016

0.4.0

0.4.0.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

extension yii2 sentry

25/04 2016

0.3.0

0.3.0.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

extension yii2 sentry

25/04 2016

0.2.1

0.2.1.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

extension yii2 sentry

25/04 2016

0.2.0

0.2.0.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

extension yii2 sentry

25/04 2016

0.1.0

0.1.0.0

Yii 2 extension for Sentry

  Sources   Download

MIT

The Requires

 

extension yii2 sentry