Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

killstreet's avatar

Send post request to NodeJS from laravel PHP

I'm working on a small chat application, and I was looking into group chats. Now what I would like, is to send a "join" request with all invited members of a chat to nodeJS, but instead of doing this with Javascript, I would like to handle it with PHP cUrl. But I have no idea what the cUrl request should look like, or how I would even catch this in nodeJS. Any tips / hits or packages I should look at that would make this easier?

Thanks in advance

0 likes
2 replies
killstreet's avatar

@primordial Sadly I am expecting a few methods like this in the end, so a single endpoint won't be a solution sadly. I just read that it's possible sending PHP post requests to nodeJS, just haven't seen how to catch and work with them on the nodeJS side. Will post once I know more!

Please or to participate in this conversation.