Connecting PHP based API with RASA

Hi, Can anyone help me connect my bot to a an open source API with is based in PHP? (Mautic) How do I edit the custom actions so I can add PHP code instead of just python code, since the API is based entirely in PHP (library, contacts everything).

I saw there is another thread about Mautic. Does this comment help? How do I connect Mautic API with RASA