Skip to content

Instantly share code, notes, and snippets.

@emir
Created September 10, 2017 21:07
Show Gist options
  • Save emir/d2a4aa0f5d67fecf00f6b0b23daef962 to your computer and use it in GitHub Desktop.
Save emir/d2a4aa0f5d67fecf00f6b0b23daef962 to your computer and use it in GitHub Desktop.
LogPusher Example
<?php
require __DIR__ . '/vendor/autoload.php';
$pusher = new \LogPusher\LogPusherClient(
new \GuzzleHttp\Client([]),
'hello@logpusher.com',
'PASSWORD',
'API_KEY'
);
$pusher->push(
'My awesome log message',
'myawesomesite.com',
'E-commerce',
'Notice',
date('H:i'),
new \DateTime('now'),
'1'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment