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

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

davidmanassa/elastic-apm-php-agent
==================================

A php agent for Elastic APM v2 Intake API

v1.0.3(1y ago)01.6k1MITPHP

Since Jan 28Pushed 1y agoCompare

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

READMEChangelogDependencies (10)Versions (5)Used By (1)

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/5384e8fa019f360a5f8e68cb334d3392f20a071b1b46cd34045e58fb581d15c4/68747470733a2f2f706f7365722e707567782e6f72672f6e6970776161796f6e692f656c61737469632d61706d2d7068702d6167656e742f76)](//packagist.org/packages/nipwaayoni/elastic-apm-php-agent)[![Total Downloads](https://camo.githubusercontent.com/092ebb6d41afeae73cfe390cb7a66a8d3c313bd6d57215981be8896bade0e9b2/68747470733a2f2f706f7365722e707567782e6f72672f6e6970776161796f6e692f656c61737469632d61706d2d7068702d6167656e742f646f776e6c6f616473)](//packagist.org/packages/nipwaayoni/elastic-apm-php-agent)[![Latest Unstable Version](https://camo.githubusercontent.com/d5f97f57c1dd3b73d0e70d05046c5ef68ab7e7944948fea66037c51f3b6f157c/68747470733a2f2f706f7365722e707567782e6f72672f6e6970776161796f6e692f656c61737469632d61706d2d7068702d6167656e742f762f756e737461626c65)](//packagist.org/packages/nipwaayoni/elastic-apm-php-agent)[![Build Status](https://github.com/nipwaayoni/elastic-apm-php-agent/workflows/CI/badge.svg)](https://github.com/nipwaayoni/elastic-apm-php-agent/actions?query=workflow%3ACI)[![License](https://camo.githubusercontent.com/f8530dde42395d057ae04c49942deab5bd646385969a9aa2c702ebb599404321/68747470733a2f2f706f7365722e707567782e6f72672f6e6970776161796f6e692f656c61737469632d61706d2d7068702d6167656e742f6c6963656e7365)](//packagist.org/packages/nipwaayoni/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/).

This package is a continuation of the excellent work done by [philkra](https://github.com/philkra) at [philkra/elastic-apm-php-agent](https://github.com/philkra/elastic-apm-php-agent).

**Important Note:** As of v8.1.0, this package requires a 64bit version of PHP. This requirement is due to the use of int values for the timestamps expected by APM.

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

[](#documentation)

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

Examples
--------

[](#examples)

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

Contributing
------------

[](#contributing)

Contributions are welcome. Read the [contributing guide](.github/CONTRIBUTING.md) to get started.

### Contributors

[](#contributors)

A big thank you goes out to every [contributor](https://github.com/nipwaayoni/elastic-apm-php-agent/graphs/contributors)of this repo, special thanks goes out to:

- [philkra](https://github.com/philkra)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance44

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~0 days

Total

4

Last Release

465d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/603dd27385d8a142141f9f42bc6c36deb94fa65b06730ff101ba7603d54326b8?d=identicon)[davidmanassa](/maintainers/davidmanassa)

---

Top Contributors

[![philkra](https://avatars.githubusercontent.com/u/35487337?v=4)](https://github.com/philkra "philkra (114 commits)")[![dstepe](https://avatars.githubusercontent.com/u/2804725?v=4)](https://github.com/dstepe "dstepe (109 commits)")[![tepeds](https://avatars.githubusercontent.com/u/162032891?v=4)](https://github.com/tepeds "tepeds (45 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)")[![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)")[![davidmanassa](https://avatars.githubusercontent.com/u/5729667?v=4)](https://github.com/davidmanassa "davidmanassa (5 commits)")[![FreezeWarp](https://avatars.githubusercontent.com/u/933133?v=4)](https://github.com/FreezeWarp "FreezeWarp (4 commits)")[![syehan](https://avatars.githubusercontent.com/u/21031766?v=4)](https://github.com/syehan "syehan (4 commits)")[![tsantos84](https://avatars.githubusercontent.com/u/1040915?v=4)](https://github.com/tsantos84 "tsantos84 (4 commits)")[![kankje](https://avatars.githubusercontent.com/u/5406982?v=4)](https://github.com/kankje "kankje (3 commits)")[![CSharpRU](https://avatars.githubusercontent.com/u/640600?v=4)](https://github.com/CSharpRU "CSharpRU (3 commits)")[![janlanger](https://avatars.githubusercontent.com/u/415695?v=4)](https://github.com/janlanger "janlanger (3 commits)")[![eddycjy](https://avatars.githubusercontent.com/u/13746731?v=4)](https://github.com/eddycjy "eddycjy (2 commits)")[![colin-redbox](https://avatars.githubusercontent.com/u/81635141?v=4)](https://github.com/colin-redbox "colin-redbox (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)")[![flexer23](https://avatars.githubusercontent.com/u/13817810?v=4)](https://github.com/flexer23 "flexer23 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M64](/packages/opensearch-project-opensearch-php)[drupal/core-recommended

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

6939.5M340](/packages/drupal-core-recommended)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[nipwaayoni/elastic-apm-php-agent

A php agent for Elastic APM v2 Intake API

30694.2k6](/packages/nipwaayoni-elastic-apm-php-agent)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

81733.7k](/packages/flow-php-flow)

PHPackages © 2026

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