PHPackages                             open-telemetry/dev-tools - 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. open-telemetry/dev-tools

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

open-telemetry/dev-tools
========================

Development tools for OpenTelemetry PHP.

0.2(4mo ago)023.9k↓45%27Apache-2.0PHPPHP ^8.1CI passing

Since Jun 15Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/opentelemetry-php/dev-tools)[ Packagist](https://packagist.org/packages/open-telemetry/dev-tools)[ RSS](/packages/open-telemetry-dev-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (18)Versions (4)Used By (7)

Development tools for OpenTelemetry PHP
=======================================

[](#development-tools-for-opentelemetry-php)

[![CI Build](https://github.com/opentelemetry-php/dev-tools/workflows/PHP%20QA/badge.svg)](https://github.com/opentelemetry-php/dev-tools/workflows/PHP%20QA/badge.svg)[![codecov](https://camo.githubusercontent.com/10c12cc759edd22215ce30a9e560177afc86bbaf444b0089c472eb64be32174f/68747470733a2f2f636f6465636f762e696f2f67682f6f70656e74656c656d657472792d7068702f6465762d746f6f6c732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d44534c364f5736544743)](https://codecov.io/gh/opentelemetry-php/dev-tools)

Release Management
------------------

[](#release-management)

A tool to find unreleased changes for OpenTelemetry, create new releases with release notes.

### Requirements

[](#requirements)

You need to be an administrator/owner of [opentelemetry-php](https://github.com/opentelemetry-php) to actually create releases. A lower-privileged account should be able to do everything else, but will fail if you try to create a release.

You need to [create a fine-grained github access token](https://github.com/settings/personal-access-tokens/new) to be able to create a release.

For everything under `opentelemetry-php` (almost everything, ie the gitsplit destination):

- resource owner: `opentelemetry-php`
- repository access: `all repositories`
- permissions: `contents:read-and-write`

For `opentelemetry-php-instrumentation` (the extension):

- resouce owner: `open-telemetry`
- repository access: (only selected) `open-telemetry/opentelemetry-php-instrumentation`
- permissions: `contents:read-and-write`

You can provide the token either via the `GITHUB_TOKEN` env var (preferred), or the `--token=` CLI option.

### Usage

[](#usage)

```
export GITHUB_TOKEN=
bin/otel release:run -[vvv] [--token=token] [--branch=main] [--dry-run] [--repo=]
```

Options:

- `-v[vv]` - verbosity
- `--token=` - github token (can also be passed by `GITHUB_TOKEN`)
- `--branch=` - github branch to tag from
- `--dry-run` - do not make any changes
- `--repo=` - choose a single upstream repo to run against (default: all)
- `--filter=` - filter repositories by prefix

The script will then:

- fetch `.gitsplit.yaml` from source repositories
- process yaml to determine downstream (read-only) repositories and their path association in upstream (eg open-telemetry/opentelemetry-php:/src/API -&gt; opentelemetry-php/api)
- find latest release in downstream
- find changes in upstream newer than the latest release, and their associated pull request
- retrieve diffs from downstream between latest tag and chosen branch (eg main)
- check that upstream changes match downstream diffs

Once all the info has been gathered, it will iterate over each repo with unreleased changes. For each repo:

- list the changes
- display the last release version, and ask for new version
- ask if new release should be latest
- ask if the new release should be a draft (eg so you can manually adjust the notes)
- generate release notes
- create the release (unless `--dry-run` was specified)

PECL release tool
-----------------

[](#pecl-release-tool)

### Generate updated `package.xml`

[](#generate-updated-packagexml)

A tool to fetch and update package.xml, for a new version of the opentelemetry extension on PECL.

```
bin/otel release:pecl
```

Options:

- `-v[vv]` - verbosity
- `--force` - add a new version even if no changes detected

The script will then:

- fetch latest release
- fetch all commits newer than last release
- fetch `package.xml`
- prompt for next version number
- move existing version details into a new `release` in ``
- update XML with new version details
- write updated `package.xml` to console

Manual steps:

1. copy/paste XML into `package.xml`
2. open in IDE to check for/fix formatting and invalid XML (invalid chars should have been converted)
3. update `php_opentelemetry.h` version info to match new version# (look for `PHP_OPENTELEMETRY_VERSION`)
4. submit a PR (`package.xml` + `php_opentelemetry.h`) back to [opentelemetry-php-instrumentation](https://github.com/open-telemetry/opentelemetry-php-instrumentation)
5. get approval and merge PR
6. tag next release: `bin/otel tag:pecl`
7. wait for github workflow to run to completion. it will create a draft release: check that it looks ok, then publish it
8. download and unzip the `opentelemetry-pecl` artifact from the release (containing `opentelemetry-.tar.gz`)
9. upload `opentelemetry-.tar.gz` to pecl:
10. verify (install via pecl)

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance84

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~704 days

Total

2

Last Release

128d ago

PHP version history (2 changes)0.1PHP ^7.4|^8.0

0.2PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4978962?v=4)[Brett McBride](/maintainers/brettmc)[@brettmc](https://github.com/brettmc)

![](https://avatars.githubusercontent.com/u/4099109?v=4)[Bob Strecansky](/maintainers/bobstrecansky)[@bobstrecansky](https://github.com/bobstrecansky)

![](https://www.gravatar.com/avatar/69cffb51399d5672406e66e7abb83f547f0f75755746d1b6144ce4042429c8e1?d=identicon)[otel-php-bot](/maintainers/otel-php-bot)

![](https://www.gravatar.com/avatar/6c8d11f4cc2c4bb65832357398092369df3b5ecda1171441be8c6a75e844f97f?d=identicon)[tidal](/maintainers/tidal)

---

Top Contributors

[![tidal](https://avatars.githubusercontent.com/u/57825?v=4)](https://github.com/tidal "tidal (107 commits)")[![brettmc](https://avatars.githubusercontent.com/u/4978962?v=4)](https://github.com/brettmc "brettmc (12 commits)")[![bobstrecansky](https://avatars.githubusercontent.com/u/4099109?v=4)](https://github.com/bobstrecansky "bobstrecansky (1 commits)")[![Nevay](https://avatars.githubusercontent.com/u/22509671?v=4)](https://github.com/Nevay "Nevay (1 commits)")[![Orest-Divintari](https://avatars.githubusercontent.com/u/9808549?v=4)](https://github.com/Orest-Divintari "Orest-Divintari (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/open-telemetry-dev-tools/health.svg)

```
[![Health](https://phpackages.com/badges/open-telemetry-dev-tools/health.svg)](https://phpackages.com/packages/open-telemetry-dev-tools)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
