enalog/enalog-php

v0.3.0 2023-07-18 20:36 UTC

This package is auto-updated.

Last update: 2024-04-18 22:24:42 UTC


README

Installation

composer require enalog/enalog-php

Usage

Sending Events

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'
]);

Requires PHP 8.2+

🧹 Keep a modern codebase with Pint:

composer lint

✅ Run refactors using Rector

composer refacto

⚗️ Run static analysis using PHPStan:

composer test:types

✅ Run unit tests using PEST

composer test:unit

🚀 Run the entire test suite:

composer test

Skeleton PHP was created by Nuno Maduro under the MIT license.