PHPackages                             loglia/laravel-client - 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. loglia/laravel-client

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

loglia/laravel-client
=====================

For sending logs and such.

v3.1.0(5y ago)5122[1 issues](https://github.com/loglia/laravel-client/issues)MITPHPPHP ^7.2

Since Nov 2Pushed 5y agoCompare

[ Source](https://github.com/loglia/laravel-client)[ Packagist](https://packagist.org/packages/loglia/laravel-client)[ Docs](https://www.loglia.app)[ RSS](/packages/loglia-laravel-client/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (31)Used By (0)

[![](https://camo.githubusercontent.com/bf68af437ae60287987d6deb7eecd883d6dadae034b0e406a56305185125016b/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6c6f676c69612f696d6167652f75706c6f61642f76313537323635363138322f6c6f676f2d6461726b5f6f626d756d612e737667)](https://camo.githubusercontent.com/bf68af437ae60287987d6deb7eecd883d6dadae034b0e406a56305185125016b/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6c6f676c69612f696d6167652f75706c6f61642f76313537323635363138322f6c6f676f2d6461726b5f6f626d756d612e737667)

*Laravel Client*

 [![Build Status](https://github.com/loglia/laravel-client/workflows/PHPUnit/badge.svg)](https://github.com/loglia/laravel-client/actions) [![Latest Stable Version](https://camo.githubusercontent.com/467cee6da748022bd29865f6b113c4796f001bfd063d33e44d501724f7877bb2/68747470733a2f2f706f7365722e707567782e6f72672f6c6f676c69612f6c61726176656c2d636c69656e742f762f737461626c652e737667)](https://packagist.org/packages/loglia/laravel-client)

About Loglia
------------

[](#about-loglia)

[Loglia](https://www.loglia.app) is a cloud-based Laravel logging and monitoring solution. Loglia will take your Laravel application's logs and make them searchable, filterable and linkable to the rest of your team. If you've ever wondered what your app would say if it could speak, Loglia will tell you.

System Requirements
-------------------

[](#system-requirements)

The Loglia client requires the following be installed and available on your system:

- Laravel 6+
- PHP 7.1+
- PHP cURL extension

Quick start
-----------

[](#quick-start)

**Firstly, require the package with Composer**:

```
composer require loglia/laravel-client
```

The package uses [package discovery](https://laravel.com/docs/master/packages#package-discovery) so you shouldn't need to add the service provider to `app.php`. If you've disabled package discovery in your app, or are using a Laravel version before 5.5, add `Loglia\LaravelClient\LaravelClientServiceProvider::class` to the `providers` array in `app.php` manually.

**Secondly, publish the Loglia configuration file**.

```
php artisan vendor:publish --tag=loglia
```

You need an API key in order to send your application's logs to Loglia. When creating an application in the Loglia UI, you will be given an API key. Copy it into your `.env` file:

```
LOGLIA_KEY=ICJCaskOl6YQAmKaXgVbpvD6o9BUA311

```

**Thirdly, configure your application to send its logs to Loglia**.

*Note: If you're using a Laravel version before 5.6, you don't need to do this. The package automatically configures your logs to send to Loglia.*

Crack open the `logging.php` config file and add this under the `channels` array:

```
'loglia' => [
    'driver' => 'loglia'
],
```

Then change the `LOG_CHANNEL` environment variable in `.env` to use that channel.

```
LOG_CHANNEL=loglia

```

You logs will now be sent to the application you have set up in the Loglia dashboard!

HTTP Logging
------------

[](#http-logging)

This package ships with a `LogHttp` middleware which can be used to log all of the HTTP requests sent to your application. This functionality ships as middleware so that you have complete control over which of your routes log requests.

If you would like to log all HTTP requests across your whole application, you can add the `LogHttp` middleware to your global middleware stack in `app/Http/Kernel.php`:

```
protected $middleware = [
    // ... other middleware ...
    \Loglia\LaravelClient\Middleware\LogHttp::class,
];
```

Alternatively, you are free to assign the middleware a name in the `$routeMiddleware` array and assign it only to specific routes:

```
protected $routeMiddleware = [
    // ... other middleware ...
    'log.http' => \Loglia\LaravelClient\Middleware\LogHttp::class,
];
```

And then use it as normal in your route definitions:

```
Route::group(['middleware' => ['log.http']], function () {
    Route::get('/', function () {
        return view('welcome');
    });
});
```

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

[](#configuration)

The package ships with a `loglia.php` configuration file that can be used to tweak the Loglia-specific configuration. The comments in this file should be self-explanatory, but below is a reference.

### `api_key`

[](#api_key)

This is the API key that will authenticate your application with Loglia. Without it, Loglia won't know which application to relate your logs with. You should generate an API key in your application settings and set its value here.

### `http.header_blacklist`

[](#httpheader_blacklist)

When logging HTTP requests, Loglia will also capture the HTTP headers in the request and response. Some of these headers contain sensitive information such as credentials and cookies. This array contains a list of HTTP headers that should be scrubbed from the request and response before sending to Loglia. It is pre-filled with sensible defaults but you are free to add or remove any header you want.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 78.2% 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 ~14 days

Recently: every ~35 days

Total

27

Last Release

2022d ago

Major Versions

v0.14.0 → v1.0.02019-11-15

v1.0.2 → v2.0.02019-11-19

v2.6.0 → v3.0.02020-06-09

PHP version history (3 changes)v0.1.0PHP ^7.1

v2.1.1PHP ^7.0

v3.0.0PHP ^7.2

### Community

Maintainers

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

---

Top Contributors

[![cwhite-intouch](https://avatars.githubusercontent.com/u/136352810?v=4)](https://github.com/cwhite-intouch "cwhite-intouch (43 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (12 commits)")

---

Tags

laravellogginglogging-library

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/loglia-laravel-client/health.svg)

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

###  Alternatives

[illuminate/log

The Illuminate Log package.

6224.3M517](/packages/illuminate-log)[freshbitsweb/laravel-log-enhancer

Make debugging easier by adding more data to your laravel logs

346569.0k](/packages/freshbitsweb-laravel-log-enhancer)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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