Initial commit

This commit is contained in:
2025-07-31 17:00:53 +03:00
commit 582d0b1316
22 changed files with 2205178 additions and 0 deletions

30
inc/lib/Prometheus.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
class Prometheus
{
private array $data = [];
public function __construct()
{
}
public function add(string $name, string|int|float $value): self
{
$this->data[$name] = $value;
return $this;
}
public function getData(): string
{
$result = '';
foreach ($this->data as $key => $value) {
$result .= $key . ': ' . $value . PHP_EOL;
}
return $result;
}
public function showData(): void
{
echo $this->getData();
}
}