enalog / enalog-php
EnaLog PHP SDK
v0.3.0
2023-07-18 20:36 UTC
Requires
- php: ^8.2.0
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- laravel/pint: ^1.10.1
- pestphp/pest: ^2.6.3
- phpstan/phpstan: ^1.10.18
- rector/rector: ^0.15.25
- symfony/var-dumper: ^6.3.0
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.