PHPackages                             gergof/elastic-apm-php-agent - 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. gergof/elastic-apm-php-agent

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

gergof/elastic-apm-php-agent
============================

A php agent for Elastic APM v2 Intake API

8.0.0(5y ago)0757MITPHPPHP &gt;= 7.1

Since Feb 2Pushed 5y agoCompare

[ Source](https://github.com/gergof/elastic-apm-php-agent)[ Packagist](https://packagist.org/packages/gergof/elastic-apm-php-agent)[ RSS](/packages/gergof-elastic-apm-php-agent/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (31)Used By (0)

Elastic APM: PHP Agent
======================

[](#elastic-apm-php-agent)

[![Build Status](https://camo.githubusercontent.com/c7ada8442baac3fbaed09b3ffb6e59796380f253cba396aa18a5b4a30a973aa7/68747470733a2f2f7472617669732d63692e636f6d2f7068696c6b72612f656c61737469632d61706d2d7068702d6167656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/philkra/elastic-apm-php-agent)[![Total Downloads](https://camo.githubusercontent.com/5bcddf18880c066ea27bf3ff5d9a634b1ac5d9ce83c4d7964c8611b5e057458a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068696c6b72612f656c61737469632d61706d2d7068702d6167656e742e7376673f7374796c653d666c6174)](https://packagist.org/packages/philkra/elastic-apm-php-agent)

This is a community PHP agent for Elastic.co's [APM](https://www.elastic.co/solutions/apm) solution, supporting the `v2` Intake API. Please note: This agent is not officially supported by [Elastic](https://www.elastic.co/).

---

**NOTE**

Elastic is working on an [official APM agent](https://github.com/elastic/apm-agent-php) for PHP, [read more](https://discuss.elastic.co/t/elastic-apm-php-agent/229373)! Go ahead and fill out [this](https://forms.gle/dnjpdXEduLVC4Ede7) survey to give Elastic your input and help shape the future of the agent!

---

Documentation
-------------

[](#documentation)

- [Installation](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/install.md)
- [Breaking Changes](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/breaking-changes.md)
- [Configuration](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/config.md)
- [Knowledgebase](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/knowledgebase.md)

Examples
--------

[](#examples)

- [Agent Initialization](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/examples/agent-init.md)
- [Basic Usage](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/examples/basic-usage.md)
- [Capture Throwable](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/examples/capture-throwable.md)
- [Spans](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/examples/spans.md)
- [Parent Transactions](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/examples/parent-transactions.php)
- [Metricset](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/examples/metricset.php)
- [Getting the Server Info](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/examples/server-info.php)
- [Distributed Tracing](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/examples/distributed-tracing.md)
- [Converting debug\_backtrace to a stack trace](https://github.com/philkra/elastic-apm-php-agent/blob/master/docs/examples/convert-backtrace.md)

Tests
-----

[](#tests)

```
vendor/bin/phpunit
```

Contributors
------------

[](#contributors)

A big thank you goes out to every contributor of this repo, special thanks goes out to:

- [dstepe](https://github.com/dstepe)
- [georgeboot](https://github.com/georgeboot)
- [alash3al](https://github.com/alash3al)
- [thinkspill](https://github.com/thinkspill)
- [YuZhenXie](https://github.com/YuZhenXie)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~39 days

Recently: every ~130 days

Total

29

Last Release

1970d ago

Major Versions

0.1.2 → 6.2.02018-06-09

v2.x-dev → 6.5.72019-04-15

6.5.8 → 7.0.0-beta12019-08-28

7.0.0-rc3 → 8.0.02021-02-08

PHP version history (2 changes)0.1.2PHP &gt;= 7.0

6.7.x-devPHP &gt;= 7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10323997?v=4)[Gergő Fándly](/maintainers/gergof)[@gergof](https://github.com/gergof)

---

Top Contributors

[![philkra](https://avatars.githubusercontent.com/u/35487337?v=4)](https://github.com/philkra "philkra (116 commits)")[![YuZhenXie](https://avatars.githubusercontent.com/u/5066215?v=4)](https://github.com/YuZhenXie "YuZhenXie (14 commits)")[![alash3al](https://avatars.githubusercontent.com/u/3078292?v=4)](https://github.com/alash3al "alash3al (13 commits)")[![georgeboot](https://avatars.githubusercontent.com/u/884482?v=4)](https://github.com/georgeboot "georgeboot (12 commits)")[![tepeds](https://avatars.githubusercontent.com/u/162032891?v=4)](https://github.com/tepeds "tepeds (8 commits)")[![MattRiddell](https://avatars.githubusercontent.com/u/9354635?v=4)](https://github.com/MattRiddell "MattRiddell (7 commits)")[![thinkspill](https://avatars.githubusercontent.com/u/822133?v=4)](https://github.com/thinkspill "thinkspill (5 commits)")[![FreezeWarp](https://avatars.githubusercontent.com/u/933133?v=4)](https://github.com/FreezeWarp "FreezeWarp (4 commits)")[![kankje](https://avatars.githubusercontent.com/u/5406982?v=4)](https://github.com/kankje "kankje (3 commits)")[![eddycjy](https://avatars.githubusercontent.com/u/13746731?v=4)](https://github.com/eddycjy "eddycjy (2 commits)")[![flexer23](https://avatars.githubusercontent.com/u/13817810?v=4)](https://github.com/flexer23 "flexer23 (2 commits)")[![Xon](https://avatars.githubusercontent.com/u/635541?v=4)](https://github.com/Xon "Xon (2 commits)")[![iainmckay](https://avatars.githubusercontent.com/u/1223726?v=4)](https://github.com/iainmckay "iainmckay (2 commits)")[![zobo](https://avatars.githubusercontent.com/u/2456026?v=4)](https://github.com/zobo "zobo (1 commits)")[![arkaitzgarro](https://avatars.githubusercontent.com/u/1712467?v=4)](https://github.com/arkaitzgarro "arkaitzgarro (1 commits)")[![arron0](https://avatars.githubusercontent.com/u/538190?v=4)](https://github.com/arron0 "arron0 (1 commits)")[![dstepe](https://avatars.githubusercontent.com/u/2804725?v=4)](https://github.com/dstepe "dstepe (1 commits)")[![gueroverde](https://avatars.githubusercontent.com/u/1765489?v=4)](https://github.com/gueroverde "gueroverde (1 commits)")[![jblotus](https://avatars.githubusercontent.com/u/382230?v=4)](https://github.com/jblotus "jblotus (1 commits)")[![jcalonso](https://avatars.githubusercontent.com/u/664474?v=4)](https://github.com/jcalonso "jcalonso (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gergof-elastic-apm-php-agent/health.svg)

```
[![Health](https://phpackages.com/badges/gergof-elastic-apm-php-agent/health.svg)](https://phpackages.com/packages/gergof-elastic-apm-php-agent)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[drupal/core-recommended

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

6942.5M419](/packages/drupal-core-recommended)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M164](/packages/spatie-laravel-health)[spatie/flare-client-php

Send PHP errors to Flare

177161.5M22](/packages/spatie-flare-client-php)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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