PHPackages                             rebing/timber-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. rebing/timber-laravel

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

rebing/timber-laravel
=====================

Laravel package for communicating with Timber (timber.io) logger API

v1.3.3(5y ago)531.7k5[3 PRs](https://github.com/rebing/timber-laravel/pulls)MITPHPPHP &gt;=7.1

Since Nov 24Pushed 4y ago2 watchersCompare

[ Source](https://github.com/rebing/timber-laravel)[ Packagist](https://packagist.org/packages/rebing/timber-laravel)[ Docs](https://github.com/rebing/timber)[ RSS](/packages/rebing-timber-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)Dependencies (7)Versions (16)Used By (0)

Timber
======

[](#timber)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cfd898c5fa2191b32a6c92a569214d3aa5c501977a5fdfb1c001f379a931593c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726562696e672f74696d6265722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rebing/timber-laravel)[![Total Downloads](https://camo.githubusercontent.com/41da9fe3e42c7e3431d7dbcf5baee8310b006d29c46d2c4737cefa9a48d80cd7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726562696e672f74696d6265722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rebing/timber-laravel)[![Build Status](https://camo.githubusercontent.com/1f6e7ad734c5493ce498cd121b554408596072563666656665b0bbab8248e724/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f726562696e672f74696d6265722d6c61726176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/rebing/timber-laravel)

A Laravel 5+ wrapper for the [Timber Logger](https://timber.io/) service. Use it to log HTTP requests or custom events to Timber.

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

[](#installation)

**1.** Require the package via Composer

```
$ composer require rebing/timber-laravel
```

**2.** Laravel 5.5+ will autodiscover the package, for older versions add the following service provider

```
Rebing\Timber\TimberServiceProvider::class,
```

and alias

```
'Timber' => 'Rebing\Timber\Support\Facades\Timber',
```

in your `config/app.php` file.

**3.** Publish the configuration file

```
$ php artisan vendor:publish --provider="Rebing\Timber\TimberServiceProvider"
```

**4.** Review the configuration file

```
config/timber.php

```

and add your Timber API key to `.env`

**5.** (Optional) Log incoming requests

Check [HTTP Requests](#http-requests)

**6.** (Optional) Log all messages

Check [Log all messages](#log-all-messages)

Usage
-----

[](#usage)

### HTTP Requests

[](#http-requests)

To log HTTP requests use the `Rebing\Timber\Middleware\LogRequest::class` middleware. This will log all incoming requests and responses, including context and Auth data.

For example, you can add it to `Kernel.php`:

```
class Kernel extends HttpKernel
{
    /**
     * The application's global HTTP middleware stack.
     *
     * These middleware are run during every request to your application.
     */
    protected $middleware = [
        Rebing\Timber\Middleware\LogRequest::class,
    ];
}
```

### Log all messages

[](#log-all-messages)

This requires Laravel 5.6+

You can leverage Laravel's `Logger` facade to log all messages to Timber.

Add a new channel to `config/logging.php`

```
'channels' => [
    'timber' => [
        'driver' => 'monolog',
        'handler' => Rebing\Timber\Handlers\TimberHandler::class,
    ],
];
```

And update your .env with `LOG_CHANNEL=timber`

You can then easily log custom data by providing a message, type and data. For example:

```
$data = [
    'key' => 'value',
];
\Log::info('Some message', ['type' => $data]);
```

### Custom Events

[](#custom-events)

You can also log custom data. Context will be added automatically.

```
use Rebing\Timber\Requests\Events\CustomEvent;

$data = [
    'some' => 'data',
];

$customEvent = new CustomEvent('Log message', 'custom', $data);
dispatch($customEvent);
// Or $customEvent->send();
```

### Disable logging

[](#disable-logging)

You can disable sending logs to Timber by updating your .env file with

```
TIMBER_ENABLED=false

```

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mikk Mihkel Nurges](https://github.com/rebing)
- [All Contributors](../../contributors%5D)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~94 days

Total

11

Last Release

2051d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4acecb37dd6c5733ab5d16a9e28b6e7cbd2ead45f824dc36d803230d9cd32c6c?d=identicon)[Rebing](/maintainers/Rebing)

---

Top Contributors

[![Anietex](https://avatars.githubusercontent.com/u/31783702?v=4)](https://github.com/Anietex "Anietex (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![eaarranz](https://avatars.githubusercontent.com/u/20563513?v=4)](https://github.com/eaarranz "eaarranz (1 commits)")[![just-greg-me](https://avatars.githubusercontent.com/u/10291800?v=4)](https://github.com/just-greg-me "just-greg-me (1 commits)")[![kprovorov](https://avatars.githubusercontent.com/u/20870537?v=4)](https://github.com/kprovorov "kprovorov (1 commits)")[![snurges](https://avatars.githubusercontent.com/u/15207547?v=4)](https://github.com/snurges "snurges (1 commits)")

---

Tags

loglaravelloggingtimber

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rebing-timber-laravel/health.svg)

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

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k122.6M186](/packages/sentry-sentry-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[larabug/larabug

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

299571.0k1](/packages/larabug-larabug)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)

PHPackages © 2026

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