PHPackages                             pektiyaz/petalog-laravel - 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. pektiyaz/petalog-laravel

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

pektiyaz/petalog-laravel
========================

PetaLog is a powerful log and exception aggregation tool designed specifically for Laravel projects. It seamlessly captures exceptions from your Laravel applications and centralizes them in a user-friendly interface, allowing developers to efficiently monitor, analyze, and resolve issues.

3.0(1y ago)02.1kMITPHP

Since Jan 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pektiyaz/petalog-laravel)[ Packagist](https://packagist.org/packages/pektiyaz/petalog-laravel)[ RSS](/packages/pektiyaz-petalog-laravel/feed)WikiDiscussions 1.0 Synced 1mo ago

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

PetaLog Laravel Driver
======================

[](#petalog-laravel-driver)

PetaLog Laravel Driver is a Laravel package that seamlessly integrates with the [Petalog](https://github.com/pektiyaz/petalog) log and exception aggregation system. With this driver installed, your Laravel application can automatically send exceptions to the PetaLog project, providing you with a centralized and efficient way to monitor and manage errors.

Features
========

[](#features)

- Automatic Exception Reporting: Once installed, the PetaLog Laravel Driver automatically captures and sends exceptions from your Laravel application to the PetaLog project.
- Custom Logging Functions: Extend the functionality of PetaLog with the provided PetaLog::capture and PetaLog::log functions. Easily send custom data and logs to the PetaLog project for comprehensive monitoring.

Installation
============

[](#installation)

To get started, install the PetaLog Laravel Driver using Composer:

```
composer require pektiyaz/petalog-laravel
```

Register in App\\Exceptions\\Handler.php

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

Configuration
=============

[](#configuration)

Add Configurations to .env file

```
PETALOG_ID=2
PETALOG_URL='http://127.0.0.1:8000/api/log'
```

Usage
=====

[](#usage)

Automatic Exception Reporting With the PetaLog Laravel Driver installed, exceptions will be automatically reported to the PetaLog project.

Custom Logging
==============

[](#custom-logging)

Use the provided PetaLog::capture and PetaLog::log functions to send custom data and logs to the PetaLog project.

```
Copy code
use Pektiyaz\PetalogLaravel\PetaLogDriver\Facades\PetaLog;

// Capture an exception
try{
    //something happening
}catch (Exception $ex){
    PetaLog::capture($ex);
}

// Log custom data
PetaLog::log('Hello World', ['key' => 'value'], 'debug');
// Log to admin
PetaLog::admin('Hello World', 'resource');
PetaLog::admin('Hello World', 'resource', 'info');
```

Contributing
============

[](#contributing)

We welcome contributions from the community! If you'd like to contribute to the PetaLog Laravel Driver

License
=======

[](#license)

PetaLog Laravel Driver is open-source software licensed under the MIT License.

Support
=======

[](#support)

If you encounter any issues or have questions, please create an issue on the GitHub repository.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

4

Last Release

557d ago

Major Versions

1.0.x-dev → 2.02024-07-26

2.0 → 3.02024-11-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4f2b8b44e78acb35b831cd7548f8670ae8a88ac477626008ba9224c4b0d5df2?d=identicon)[pektiyaz](/maintainers/pektiyaz)

---

Top Contributors

[![pektiyaz](https://avatars.githubusercontent.com/u/30262879?v=4)](https://github.com/pektiyaz "pektiyaz (7 commits)")

### Embed Badge

![Health badge](/badges/pektiyaz-petalog-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/pektiyaz-petalog-laravel/health.svg)](https://phpackages.com/packages/pektiyaz-petalog-laravel)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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