davmixcool/logsnag.php

An un-official API wrapper for logsnag.com

v0.0.1 2022-03-07 15:44 UTC

This package is auto-updated.

Last update: 2024-04-15 12:54:20 UTC


README

LogSnag

LogSnag

An un-offical API wrapper for logsnag.com to get notifications and track your project events.

Stable Discord Documentation

Requirements

  • PHP 5.5 and above

Steps

Installation

Composer

Run the following command to include this package via Composer

composer require davmixcool/logsnag.php

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.