Download the PHP package just-bases/php-obs-dev-base without Composer
On this page you can find all versions of the php package just-bases/php-obs-dev-base. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download just-bases/php-obs-dev-base
More information about just-bases/php-obs-dev-base
Files in just-bases/php-obs-dev-base
Package php-obs-dev-base
Short Description PHP Observability Dev/CI Metapackage
License MIT
Informations about the package php-obs-dev-base
php-obs-dev-base
PHP observability dev/CI metapackage. The concrete counterpart to php-obs-base.
Why this exists, and why it's separate
php-obs-base is deliberately flat — API-only, contracts-only (OTel API, CloudEvents, PSR-3). That's correct for anything a library depends on: consumers shouldn't have an exporter, an SDK, or a concrete logger forced on them by a package they didn't choose.
But tests and CI need to actually run observability code — assert on real span output, real log lines, real event serialization — not mock an interface in every package's test suite individually. That's a dev/CI concern, not a runtime-consumer concern, so it gets its own metapackage rather than being bundled into php-obs-base itself.
Rule of thumb: php-obs-base goes in require. php-obs-dev-base goes in require-dev, and only in the package actually running the tests — not in every downstream consumer.
What it requires
- php-obs-base — pulls in the flat contracts (OTel API, CloudEvents, PSR-3) this package builds on.
- OTel SDK — the concrete implementation. Lets tests exercise real span creation/export instead of a no-op API implementation.
- OTel OTLP exporter + gRPC transport — export path for local dev (point at a local collector/Jaeger) and CI (assert against captured span data).
- Monolog — concrete PSR-3 implementation for dev/CI logging assertions.
Usage
Status
New. First real dev/CI counterpart to a -base package — if this pattern holds up, php-unit-test-base and php-qa-base may eventually get non-flat siblings too, but only if a real need for one surfaces the same way this one did.
All versions of php-obs-dev-base with dependencies
open-telemetry/sdk Version ^1.9
open-telemetry/exporter-otlp Version ^1.1
open-telemetry/transport-grpc Version ^1.1
monolog/monolog Version ^3.7