enalog/enalog-php

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

This package is auto-updated.

Last update: 2024-12-18 23:37:06 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.