LogSnag
An un-offical API wrapper for logsnag.com to get notifications and track your project events.
Requirements
- PHP 5.5 and above
Steps
Installation
Composer
Run the following command to include this package via Composer
composer require davmixcool/logsnag
Usage
Import Library
use Davmixcool\LogSnag;
Initialize Client
$logsnag = new LogSnag('7f568d735724351757637b1dbf108e5');
Publish Event
$logsnag->publish([
'project' => "my-saas",
'channel' => "waitlist",
'event' => "User Joined",
'icon' => "🎉",
'notify' => true
]);
Options
Option | Type | Description |
---|---|---|
project |
text required |
Project name. |
channel |
text required |
Channel Name. |
event |
text required |
Event name. |
description |
text optional |
Event description. |
icon |
text optional |
Single emoji as the event icon. |
notify |
boolean optional |
Send push notification. |
Maintainers
This package is maintained by David Oti and you!
License
This package is licensed under the MIT license.