Download the PHP package hindsight/php-sdk without Composer
On this page you can find all versions of the php package hindsight/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hindsight/php-sdk
More information about hindsight/php-sdk
Files in hindsight/php-sdk
Package php-sdk
Short Description Monolog handler and Laravel package for Hindsight
License MIT
Informations about the package php-sdk
Hindsight - PHP SDK
Installation
composer require hindsight/php-sdk
On Laravel
php artisan vendor:publish --tag=hindsight
- Insert your API key into the
config/hindsight.php
file and configure the remaining options to your liking - Add the
\Hindsight\Middleware\HindsightRequestLogger::class
middleware to the appropriate routes viaapp/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:
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.
If you are on Laravel 5.4 or earlier, add the Hindsight\Providers\HindsightServiceProvider::class
to your config/app.php
.
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:
If you wish to have a non-standard configuration, you may manually push the Hindsight\Monolog\HindsightMonologHandler
onto your Monolog instance.
All versions of php-sdk with dependencies
guzzlehttp/guzzle Version ^6.3
decahedron/monolog-sticky-context Version ^1.0.0
ramsey/uuid Version ^3.7