I was wondering what would be the best way to communicate between my PHP script and a NodeJS service running on localhost (not only for security purposes).
I thought of just getting the NodeJS response I need with a file_get_contents('http://localhost:8080/****'), would it be the best way ?