# \[PHP APM Agent\] - span support for SOAP APIs?

**URL:** <https://discuss.elastic.co/t/php-apm-agent-span-support-for-soap-apis/358152>\
**Category:** APM\
**Tags:** php\
**Created:** [April 24, 2024, 5:33pm UTC](https://discuss.elastic.co/t/php-apm-agent-span-support-for-soap-apis/358152 "2024-04-24T17:33:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhowe1991](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@nhowe1991](https://discuss.elastic.co/u/nhowe1991)\
**Post date:** [April 24, 2024, 5:33pm UTC](https://discuss.elastic.co/t/php-apm-agent-span-support-for-soap-apis/358152/1 "2024-04-24T17:33:05Z")

</div>

We just started leveraging some of APM on our Elastic cluster, and it is going well so far except for one thing. We have multiple services that interact with different APIs via the SOAPClient class that is built into PHP.

It seems that the PHP agent only support curl and Guzzle at the moment, anyone know if the support is planned or if there is a workaround of some kind?

---

<div class="post-metadata">

**Author:** ![rauan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rauan/32/140891_2.png) [@rauan](https://discuss.elastic.co/u/rauan)\
**Post date:** [February 16, 2025, 3:24pm UTC](https://discuss.elastic.co/t/php-apm-agent-span-support-for-soap-apis/358152/2 "2025-02-16T15:24:34Z")

</div>

SOAP extension is obsolete and abandoned.

I strongly suggest migrating to plain PHP [GitHub - phpro/soap-client: A general purpose SOAP client for PHP](https://github.com/phpro/soap-client) which will give you better extensibility, type safety, and better observability since its transport is pluggable, so you can just trace the underlying guzzle client.
