PHP code example of enalog / enalog-php
1. Go to this page and download the library: Download enalog/enalog-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/ */
enalog / enalog-php example snippets
use EnaLog\EnaLogClient;
$enalogClient = new EnaLogClient('api-token');
$enalogClient->pushEvent([
'project' => 'hello-world',
'name' => 'testing-php',
'description' => 'hello world event description',
'icon' => '👀',
'tags' => ['hello', 'world'],
'meta' => ['meta' => 'data'],
'channels' => [],
'user_id' => '1234'
]);
composer