PHPackages                             invoitrade/otel-common-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. invoitrade/otel-common-php

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

invoitrade/otel-common-php
==========================

Unified OpenTelemetry logging, tracing, and metrics library for PHP (Compatible with C# Common\_lib approach)

01PHP

Since Feb 17Pushed 3mo agoCompare

[ Source](https://github.com/alexeymorozovdv/otel-common-php)[ Packagist](https://packagist.org/packages/invoitrade/otel-common-php)[ RSS](/packages/invoitrade-otel-common-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

OtelCommon PHP Library
======================

[](#otelcommon-php-library)

> Unified OpenTelemetry logging, tracing, and metrics library for PHP Compatible with C# Common\_lib approach

[![PHP Version](https://camo.githubusercontent.com/acffb6ae1962992d26e4466782832787e79504a6250f80d732c4283458b9f497/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d626c75652e737667)](https://www.php.net/)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

🎯 Features
----------

[](#-features)

- ✅ **Unified Logging**: Monolog-based logging with OpenTelemetry integration
- ✅ **OTLP Export**: Direct export to OpenTelemetry Collector via OTLP/HTTP
- ✅ **OpenSearch Compatible**: Log format compatible with OpenSearch/Elasticsearch
- ✅ **C# Common\_lib Compatibility**: Same index structure and namespace conventions
- ✅ **Framework Integration**: Laravel Service Provider included
- ✅ **PSR-3 Compatible**: Standard PHP logger interface
- ✅ **Multi-version PHP**: Supports PHP 8.1, 8.2, 8.3

---

📦 Installation
--------------

[](#-installation)

```
composer require invoitrade/otel-common-php
```

---

🚀 Quick Start
-------------

[](#-quick-start)

### Vanilla PHP

[](#vanilla-php)

```
