2017 © Pedro Peláez
 

library php-sdk

Monolog handler and Laravel package for Hindsight

image

hindsight/php-sdk

Monolog handler and Laravel package for Hindsight

  • Friday, June 1, 2018
  • by phroggyy
  • Repository
  • 3 Watchers
  • 4 Stars
  • 1,323 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 17 Versions
  • 252 % Grown

The README.md

Hindsight - PHP SDK

Installation

  1. composer require hindsight/php-sdk

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

On Laravel 5.6, register a new log channel with the hindsight driver:, (*1)

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

        // ...

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

Laravel < 5.6

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., (*2)

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

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:, (*4)

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., (*5)

The Versions

01/06 2018

dev-master

9999999-dev

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

01/06 2018

v0.6

0.6.0.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

25/05 2018

v0.5

0.5.0.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

20/05 2018

v0.4.2

0.4.2.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

20/05 2018

v0.4.1

0.4.1.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

18/05 2018

v0.4

0.4.0.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

15/05 2018

v0.3.5

0.3.5.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

15/05 2018

v0.3.4

0.3.4.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

15/05 2018

v0.3.3

0.3.3.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

15/05 2018

v0.3.2

0.3.2.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

14/05 2018

v0.3.1

0.3.1.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

11/05 2018

v0.3

0.3.0.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

11/05 2018

dev-feat/laravel-driver

dev-feat/laravel-driver

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

02/05 2018

v0.2

0.2.0.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

22/04 2018

v0.1.2

0.1.2.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

MIT

The Requires

 

by Decahedron Technologies Ltd

09/04 2018

v0.1.1

0.1.1.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

The Requires

 

by Decahedron Technologies Ltd

09/04 2018

v0.1

0.1.0.0

Monolog handler and Laravel package for Hindsight

  Sources   Download

The Requires

 

by Decahedron Technologies Ltd