2017 © Pedro Peláez
 

luya-module luya-module-errorapi

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

image

luyadev/luya-module-errorapi

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  • Saturday, July 21, 2018
  • by nadar
  • Repository
  • 3 Watchers
  • 1 Stars
  • 641 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 13 Versions
  • 5 % Grown

The README.md

LUYA Logo , (*1)

Error API Module

LUYA Latest Stable Version Total Downloads Maintainability Test Coverage Build Status, (*2)

For a solid and secure website, it is important to get notified about all the errors and exceptions that occur. This helps prevent unnoticed repeating errors and keeps customers happy as they won't have to complain., (*3)

With the Error Api module, you can send all exceptions to your personal Error Api and get notify by email or Slack. If an exception occurs on the customer website, you will be notified with the full error stack and a slack notification will be sent (if configured)., (*4)

Install Server

For the installation of modules Composer is required:, (*5)

composer require luyadev/luya-module-errorapi

Configuration

After installation via Composer include the module to your configuration file within the modules section., (*6)

'modules' => [
    // ...
    'errorapi' => [
        'class' => 'luya\errorapi\Module',
        'adapters' => [
            [
                'class' => 'luya\errorapi\adapters\MailAdapter',
                'recipient' => ['errors@example.com'],
            ],
            [
                'class' => 'luya\errorapi\adapters\SlackAdapter',
                'token' => 'xyz.xyz.xyz.xyz',
            ],
            [
                'class' => 'luya\errorapi\adapters\SentryAdapter',
                'token' => 'YOUR_SENTRY_USER_AUTH_TOKEN',
                'organisation' => 'organisationslug',
                'team' => 'teamslug',
            ]
        ],
    ],
]

Initialization

After successfully installation and configuration run the migrate, import and setup command to initialize the module in your project., (*7)

1.) Migrate your database., (*8)

./vendor/bin/luya migrate

2.) Import the module and migrations into your LUYA project., (*9)

./vendor/bin/luya import

It is very important to run the ./vendor/bin/luya migrate and ./vendor/bin/luya import commands in order for these changes to take effect., (*10)

Setup Client

To enable the error api for your website you need to configure the default LUYA error handler in the component section of your config file with the current setup server (error api):, (*11)

'components' => [
    // ...
    'errorHandler' => [
        'api' => 'https://example.com/errorapi', // where example is the domain you have setup error api above
        'transferException' => true,
    ],
]

The Versions

21/07 2018

dev-master

9999999-dev https://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

The Development Requires

php yii2 module yii luya luya-module errorapi

21/07 2018

1.0.2

1.0.2.0 https://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

The Development Requires

php yii2 module yii luya luya-module errorapi

15/01 2018

1.0.1.1

1.0.1.1 https://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

The Development Requires

php yii2 module yii luya luya-module errorapi

15/01 2018

1.0.1

1.0.1.0 https://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

The Development Requires

php yii2 module yii luya luya-module errorapi

12/12 2017

1.0.0

1.0.0.0 https://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

php yii2 module yii luya luya-module errorapi

05/09 2017

1.0.0-RC4

1.0.0.0-RC4 https://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

php yii2 module yii luya luya-module errorapi

11/04 2017

1.0.0-RC3

1.0.0.0-RC3 https://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

php yii2 module yii luya luya-module errorapi

29/11 2016

1.0.0-RC2

1.0.0.0-RC2 http://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

php yii2 module yii luya luya-module errorapi

12/09 2016

1.0.0-RC1

1.0.0.0-RC1 http://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

php yii2 module yii luya luya-module errorapi

17/06 2016

1.0.0-beta7

1.0.0.0-beta7 http://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

php yii2 module yii luya luya-module errorapi

17/06 2016

1.0.0-beta8

1.0.0.0-beta8 http://luya.io

To create strong and secure website its important to know all exceptions before your customer knows the exceptions and to make sure the exception happends only once.

  Sources   Download

MIT

php yii2 module yii luya luya-module errorapi

21/04 2016

1.0.0-beta6

1.0.0.0-beta6 http://luya.io

Yii2 LUYA Error Api

  Sources   Download

MIT

php yii2 module yii luya errorapi

09/02 2016

1.0.0-beta5

1.0.0.0-beta5 http://luya.io

Zephir Luya Error Api

  Sources   Download

MIT

The Requires

 

php yii2 module yii luya errorapi