Of course you can run a php script as any other. If it has proper access rights and she bang you can run it directly, if not you need to run it through php executable.
What dependencies you need to install does depend on the class provided by your service partner. Also dependencies of php itself should be managed by your distros package management system.
But to be honest. Before doing such ugly stuff I’d ask for a proper documentation of their api and implement a client in elixir and release it on hex as well…
I’m guessing this is the API documentation for what @LegitStack is asking about. It seems like it would be a very complex task to adapt that PHP code to Elixir, and the documentation doesn’t exactly provide details on what URLs to make requests to.
I understand that Ports (Erlang -- Ports and Port Drivers) are a common way to handle communication with external processes. It seems that you should be able to write your PHP interop script so that it runs from a Port and uses the communication capabilities of that port to communicate through to your Elixir processes.