Initial commit

This commit is contained in:
2025-09-06 01:21:02 +02:00
commit 5010d085f5
6 changed files with 429 additions and 0 deletions

21
README.md Normal file
View File

@@ -0,0 +1,21 @@
# LogDB Client
This is a very lightweight library for pushing events to LogDB over HTTP or UDP.
## Usage
```php
use LogDb\Client\LogDbClient;
use LogDb\Client\LogEvent;
$event = new LogEvent(
brief:"This is a test",
scope:"test"
);
$httpClient = new LogDbClient("127.0.0.1:7000", "http");
$httpClient->logEvent($event);
$udpClient = new LogDbClient("127.0.0.1:7000", "udp");
$udpClient->logEvent($event);
```