elasticsearch – APM PHP Agent Configuration

I am having a hard time setting up my APM PHP Agent on a test EC2 server, can anyone show me how to configure it correctly to send log data to my ELK server? I tried to ask this question in the Git repository, but the owners are not being useful at all, the administrator keeps closing my question without answering it.

He literally said he couldn't help me, so now I'm stuck!

If someone can show me or point me in the right direction, it would be great because I have been in this for quite some time and I still can't understand it!
This is the link to the repository, the documentation is simply horrible there and the support is even worse.

Thank you!

What is apm?

what is apm