PHPackages                             manadinho/lucent - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. manadinho/lucent

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

manadinho/lucent
================

Package to track exception for production environment

1.0.1(2y ago)1301MITPHP

Since Sep 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/manadinho/lucent-package)[ Packagist](https://packagist.org/packages/manadinho/lucent)[ RSS](/packages/manadinho-lucent/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

[![Lucent](lucent-logo-light.png)](lucent-logo-light.png)

Lucent-Package
==============

[](#lucent-package)

Introduction
------------

[](#introduction)

The `lucent-package` is an essential component that connects your applications with the Lucent Web App for seamless error logging. It is crafted to be integrated into the very applications you wish to monitor for errors.

**Important:** Before incorporating the `lucent-package` into your app, ensure that you have the Lucent Web App configured and ready to go. If you haven't set up the Lucent Project yet, please follow the link below to get started.

Getting Started with Lucent
---------------------------

[](#getting-started-with-lucent)

To establish a robust error tracking system, your first step is to set up the Lucent Project. Detailed instructions and necessary resources can be found at the following link:

[Set Up Lucent Project](https://github.com/manadinho/lucent)

Once the Lucent Project is in place, you can proceed to integrate the `lucent-package` into your application to begin error logging.

Installation
------------

[](#installation)

Install Lucent Package

```
composer require manadinho/lucent
```

Publish Configurations

```
php artisan vendor:publish --provider="Manadinho\Lucent\LucentServiceProvider"
```

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

[](#configuration)

After creating a new project in your Lucent Project, you will obtain a `LUCENT_KEY`. Place this key along with the URL of your Lucent Project into the `.env` file of the Laravel project you wish to track. Your `.env` file should now include the following entries:

```
LUCENT_KEY=paste_your_copied_lucent_key_here
LUCENT_URL=https://example.com/lucent
```

Navigate to the `app/Exceptions/Handler.php` file in your Laravel project and import the Lucent Facade at the beginning of the file:

```
use Manadinho\Lucent\Facades\Lucent;
```

Then, within the register method of your Handler.php file, enhance the reportable method by adding a call to Lucent::register($e). This ensures that any thrown exceptions are captured and logged by the Lucent Web App. Here's the complete method for clarity:

```
public function register(): void
{
    $this->reportable(function (Throwable $e) {
        Lucent::register($e);
    });
}
```

Config Options
--------------

[](#config-options)

Modify the settings of the package by editing the `config/lucent.php` file. Here are the available configuration options:

```
with_request_details [boolean]
```

This option allows you to choose whether to log the request details associated with the error.

```
with_app_details [boolean]
```

Enable this to log application-specific details, such as PHP version, Laravel version, environment, and locale.

```
with_user_details [boolean]
```

You can set it to true if you want to log the logged in user details.

```
line_count [boolean]
```

Adjust this setting to define the number of lines from the file you wish to log.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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 ~10 days

Total

2

Last Release

979d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d6e8f4636318e0b05c60ffaf115a0fed2e13f552c9f334347029f00c0fd172e?d=identicon)[imran israr](/maintainers/imran%20israr)

---

Top Contributors

[![manadinho](https://avatars.githubusercontent.com/u/18038023?v=4)](https://github.com/manadinho "manadinho (11 commits)")

### Embed Badge

![Health badge](/badges/manadinho-lucent/health.svg)

```
[![Health](https://phpackages.com/badges/manadinho-lucent/health.svg)](https://phpackages.com/packages/manadinho-lucent)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299549.3k1](/packages/larabug-larabug)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)

PHPackages © 2026

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