PHPackages                             luyadev/luya-module-errorapi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. luyadev/luya-module-errorapi

ActiveLuya-module[Debugging &amp; Profiling](/categories/debugging)

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.

2.2.4(2y ago)220.0k—0%3[1 PRs](https://github.com/luyadev/luya-module-errorapi/pulls)MITPHPCI failing

Since Feb 9Pushed 1y ago2 watchersCompare

[ Source](https://github.com/luyadev/luya-module-errorapi)[ Packagist](https://packagist.org/packages/luyadev/luya-module-errorapi)[ Docs](https://luya.io)[ RSS](/packages/luyadev-luya-module-errorapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (23)Used By (0)

 [![LUYA Logo](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)

Error API Module
================

[](#error-api-module)

[![LUYA](https://camo.githubusercontent.com/c30b61934591d3a6fcb8718a93fd61bf840c0abd8a8d49aa0fdd4ab99567bdf4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f776572656425323062792d4c5559412d627269676874677265656e2e737667)](https://luya.io)[![Latest Stable Version](https://camo.githubusercontent.com/140b651db12a07f87db2c7f6d64ba7f011147cd310c5db1297c9abbc881b6532/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d6d6f64756c652d6572726f726170692f762f737461626c65)](https://packagist.org/packages/luyadev/luya-module-errorapi)[![Total Downloads](https://camo.githubusercontent.com/97526022de52b472f0c8b77db5d2bbd350cda3ca10a12b38344388fe0b23afac/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d6d6f64756c652d6572726f726170692f646f776e6c6f616473)](https://packagist.org/packages/luyadev/luya-module-errorapi)[![Maintainability](https://camo.githubusercontent.com/d8aaf054d4c00e725a6e44a89a9a38bbb00e8d5325a2964cc46bf3130b8c5e90/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61653962613639666332363434623565663962652f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/luyadev/luya-module-errorapi/maintainability)[![Test Coverage](https://camo.githubusercontent.com/79946b28a39dff2f71cf1f02fe9794d9f80ec782fd1f09de8bd774acca56ef81/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61653962613639666332363434623565663962652f746573745f636f766572616765)](https://codeclimate.com/github/luyadev/luya-module-errorapi/test_coverage)[![Build Status](https://camo.githubusercontent.com/ec157cb819410bf35d661a138d000b21276214de192d4254e10d46c0f36cb276/68747470733a2f2f7472617669732d63692e6f72672f6c7579616465762f6c7579612d6d6f64756c652d6572726f726170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/luyadev/luya-module-errorapi)

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.

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).

Install Server
--------------

[](#install-server)

For the installation of modules Composer is required:

```
composer require luyadev/luya-module-errorapi

```

### Configuration

[](#configuration)

After installation via Composer include the module to your configuration file within the modules section.

```
'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

[](#initialization)

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

1.) Migrate your database.

```
./vendor/bin/luya migrate
```

2.) Import the module and migrations into your LUYA project.

```
./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.

Setup Client
------------

[](#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):

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

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 81.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~148 days

Recently: every ~367 days

Total

20

Last Release

922d ago

Major Versions

1.0.2 → 2.0.02019-08-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/86184bf08843ed8fcc4aedb2fdecd8a9e832e47e89a7166cebfda529c176f5ce?d=identicon)[nadar](/maintainers/nadar)

---

Top Contributors

[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (136 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![martinpetrasch](https://avatars.githubusercontent.com/u/6354795?v=4)](https://github.com/martinpetrasch "martinpetrasch (4 commits)")[![chemezov](https://avatars.githubusercontent.com/u/2368902?v=4)](https://github.com/chemezov "chemezov (3 commits)")[![dev7ch](https://avatars.githubusercontent.com/u/15183757?v=4)](https://github.com/dev7ch "dev7ch (3 commits)")[![asyou99](https://avatars.githubusercontent.com/u/12735688?v=4)](https://github.com/asyou99 "asyou99 (2 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (2 commits)")[![rolandschaub](https://avatars.githubusercontent.com/u/3786245?v=4)](https://github.com/rolandschaub "rolandschaub (1 commits)")[![trk](https://avatars.githubusercontent.com/u/455983?v=4)](https://github.com/trk "trk (1 commits)")[![agaplus](https://avatars.githubusercontent.com/u/1999039?v=4)](https://github.com/agaplus "agaplus (1 commits)")[![vuongxuongminh](https://avatars.githubusercontent.com/u/38932626?v=4)](https://github.com/vuongxuongminh "vuongxuongminh (1 commits)")[![dennisgon](https://avatars.githubusercontent.com/u/6257311?v=4)](https://github.com/dennisgon "dennisgon (1 commits)")[![Emericanec](https://avatars.githubusercontent.com/u/7316100?v=4)](https://github.com/Emericanec "Emericanec (1 commits)")[![hbugdoll](https://avatars.githubusercontent.com/u/6715827?v=4)](https://github.com/hbugdoll "hbugdoll (1 commits)")[![JohnnyMcWeed](https://avatars.githubusercontent.com/u/9844452?v=4)](https://github.com/JohnnyMcWeed "JohnnyMcWeed (1 commits)")[![nandes2062](https://avatars.githubusercontent.com/u/6126258?v=4)](https://github.com/nandes2062 "nandes2062 (1 commits)")[![rodzadra](https://avatars.githubusercontent.com/u/936497?v=4)](https://github.com/rodzadra "rodzadra (1 commits)")

---

Tags

error-handlinghacktoberfestluyaphpyii2moduleyiiluyaluya-moduleerrorapi

### Embed Badge

![Health badge](/badges/luyadev-luya-module-errorapi/health.svg)

```
[![Health](https://phpackages.com/badges/luyadev-luya-module-errorapi/health.svg)](https://phpackages.com/packages/luyadev-luya-module-errorapi)
```

###  Alternatives

[luyadev/luya-module-cms

The LUYA CMS module provides a full functional Content Management System for adding contents based on blocks.

32176.1k18](/packages/luyadev-luya-module-cms)[luyadev/luya-bootstrap4

Bootstrap4 Assets and Helper classes like ActiveForm for LUYA and Yii2.

1843.9k3](/packages/luyadev-luya-bootstrap4)[luyadev/luya-module-payment

LUYA Payment allows you to integrate payments in a safe and fast way. The module take care of all the provider required steps (call, create, success, abort, etc.) and provides all the informations for your store.

1012.1k](/packages/luyadev-luya-module-payment)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
