PHPackages                             oshco/db-exceptions-logger - 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. [Framework](/categories/framework)
4. /
5. oshco/db-exceptions-logger

ActiveLibrary[Framework](/categories/framework)

oshco/db-exceptions-logger
==========================

A component which is used to log exceptions to database.

v1.2.0(7mo ago)0791MITPHPPHP &gt;=8.0CI failing

Since May 20Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/OSHCO/db-exceptions-logger)[ Packagist](https://packagist.org/packages/oshco/db-exceptions-logger)[ RSS](/packages/oshco-db-exceptions-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (0)

Database Exceptions Logger
==========================

[](#database-exceptions-logger)

A WebFiori framework extension which is used to log exceptions to database. The library currently supports SQL Server only.

Configuration
-------------

[](#configuration)

- Add dependency
- Initialize database
- Set errors handler

First, include this library in your project by adding the following dependency:

```
oshco/db-exceptions-logger

```

To initialize the table which is used to store exceptions, run following command:

```
php webfiori run-query --schema="oshco\database\logger\ExceptionsDB" --connection=
```

Replace `your-connection` with the database connection to be used by the class. Note that the class will try to use a connection with the name `exceptions-logger` if no connection provided.

To set errors handler, place following code in any of the initialization files:

```
\webfiori\error\Handler::registerHandler(new \oshco\handler\DatabaseErrHandler(new oshco\database\logger\ExceptionsDB()));
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance64

Regular maintenance activity

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~127 days

Total

5

Last Release

218d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9354222d322c9350ffca453dd07926f71a4b021a69c3157190dc0adc100b1c78?d=identicon)[oshco](/maintainers/oshco)

---

Top Contributors

[![usernane](https://avatars.githubusercontent.com/u/12120015?v=4)](https://github.com/usernane "usernane (37 commits)")

---

Tags

frameworkdatabaseloggerwebfiori

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/oshco-db-exceptions-logger/health.svg)

```
[![Health](https://phpackages.com/badges/oshco-db-exceptions-logger/health.svg)](https://phpackages.com/packages/oshco-db-exceptions-logger)
```

PHPackages © 2026

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