# APM Agnet for php

**URL:** <https://discuss.elastic.co/t/apm-agnet-for-php/153714>\
**Category:** APM\
**Created:** [October 24, 2018, 5:33am UTC](https://discuss.elastic.co/t/apm-agnet-for-php/153714 "2018-10-24T05:33:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahid](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@shahid](https://discuss.elastic.co/u/shahid)\
**Post date:** [October 24, 2018, 5:33am UTC](https://discuss.elastic.co/t/apm-agnet-for-php/153714/1 "2018-10-24T05:33:10Z")

</div>

Hi Tech team,

I wanted to monitor my MY API server which is on PHP, Can i use the APM server and client (ELK+APM) to monitor the api server. Actually i need stats all stats of my API servers on Kibana dashboard as provided by another application . Please see the stats on the below url.

> **[swagger-stats](http://swaggerstats.io/)**
>
> Telemetry for your APIs: Trace and monitor REST API performance, health and usage statistics in Node.js Microservices. swagger-stats monitors REST API requests and responses in Node.js express apps and collects statistics. swagger-stats detects and...

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [October 24, 2018, 6:12am UTC](https://discuss.elastic.co/t/apm-agnet-for-php/153714/2 "2018-10-24T06:12:55Z")

</div>

You can use Elastic APM to monitor the response times of your API endpoints. There is no Elastic-supported agent for PHP yet (one is coming! see [Elastic APM PHP Agent](https://discuss.elastic.co/t/elastic-apm-php-agent/229373)), however there are several PHP agents developed by community members, e.g.

- [https://github.com/philkra/elastic-apm-php-agent](https://github.com/philkra/elastic-apm-php-agent)
- [https://github.com/frankkoornstra/elastic-apm-agent](https://github.com/frankkoornstra/elastic-apm-agent)

Regarding swagger-stats: it's not clear to me what you want to do, since you mentioned your app is written in PHP, but swagger-stats appears to be for Node.js. Are you just using this as an example of what you want to achieve? From what I can see (I don't know swagger-stats), it looks like it produces roughly similar data to Elastic APM.

---

<div class="post-metadata">

**Author:** ![shahid](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@shahid](https://discuss.elastic.co/u/shahid)\
**Post date:** [October 24, 2018, 6:36am UTC](https://discuss.elastic.co/t/apm-agnet-for-php/153714/3 "2018-10-24T06:36:51Z")

</div>

@axw Thanks for your quick response.  
The reason i mentioned Swagger-stats here because their dashboard and stats are very helpful but unfortunate its not supported to php so my question was if i can get the same monitoring stats with APM and create dashboard of my api stats using the APM and ELK, then it will be a blessing for me.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 14, 2018, 2:36am UTC](https://discuss.elastic.co/t/apm-agnet-for-php/153714/4 "2018-11-14T02:36:52Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
