PHP code example of davmixcool / logsnag.php

1. Go to this page and download the library: Download davmixcool/logsnag.php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

davmixcool / logsnag.php example snippets


use Davmixcool\LogSnag;

$logsnag = new LogSnag('7f568d735724351757637b1dbf108e5');

$logsnag->publish([
    'project' => "my-saas",
    'channel' => "waitlist",
    'event' => "User Joined",
    'icon' => "🎉",
    'notify' => true
]);
shell
composer