PHPackages                             hindsight/php-sdk - 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. hindsight/php-sdk

ActiveLibrary

hindsight/php-sdk
=================

Monolog handler and Laravel package for Hindsight

v0.7(7y ago)46.5k2[1 issues](https://github.com/hindsightio/php-sdk/issues)MITPHP

Since Apr 9Pushed 7y ago3 watchersCompare

[ Source](https://github.com/hindsightio/php-sdk)[ Packagist](https://packagist.org/packages/hindsight/php-sdk)[ RSS](/packages/hindsight-php-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (4)Versions (19)Used By (0)

Hindsight - PHP SDK
===================

[](#hindsight---php-sdk)

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

[](#installation)

1. `composer require hindsight/php-sdk`

### On Laravel

[](#on-laravel)

1. `php artisan vendor:publish --tag=hindsight`
2. Insert your API key into the `config/hindsight.php` file and configure the remaining options to your liking
3. Add the `\Hindsight\Middleware\HindsightRequestLogger::class` middleware to the appropriate routes via `app/Http/Kernel.php` (to add it globally) or in the route files.

#### Laravel 5.6

[](#laravel-56)

On Laravel 5.6, register a new log channel with the `hindsight` driver:

```
    'channels' => [
        'stack' => [
            'driver' => 'stack',
            // Add hindsight to the stack:
            'channels' => ['single', 'hindsight'],
        ],

        // ...

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

#### Laravel &lt; 5.6

[](#laravel--56)

If you are on Laravel 5.5, you don't need to do anything, we've automatically registered the service provider and the Hindsight logger.

If you are on Laravel 5.4 or earlier, add the `Hindsight\Providers\HindsightServiceProvider::class`to your `config/app.php`.

### Without Laravel

[](#without-laravel)

If you are not using Laravel, you may manually configure your Monolog instance to start sending logs to Hindsight. For convenience, we have a configuration class that you may use:

```
use Hindsight\Hindsight;

Hindsight::setup($monologInstance, $yourApiKey);
```

If you wish to have a non-standard configuration, you may manually push the `Hindsight\Monolog\HindsightMonologHandler`onto your Monolog instance.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 76% 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 ~9 days

Recently: every ~23 days

Total

16

Last Release

2825d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f7c369fe9e0f2394fa77dfd669ab045a4743a517fc08dcfdbc65dbe17928178?d=identicon)[phroggyy](/maintainers/phroggyy)

---

Top Contributors

[![phroggyy](https://avatars.githubusercontent.com/u/7256451?v=4)](https://github.com/phroggyy "phroggyy (19 commits)")[![cwhite-intouch](https://avatars.githubusercontent.com/u/136352810?v=4)](https://github.com/cwhite-intouch "cwhite-intouch (2 commits)")[![jamosaur](https://avatars.githubusercontent.com/u/4105611?v=4)](https://github.com/jamosaur "jamosaur (2 commits)")[![rizqidjamaluddin](https://avatars.githubusercontent.com/u/1274731?v=4)](https://github.com/rizqidjamaluddin "rizqidjamaluddin (1 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 commits)")

### Embed Badge

![Health badge](/badges/hindsight-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/hindsight-php-sdk/health.svg)](https://phpackages.com/packages/hindsight-php-sdk)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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