API to call from PHP to Golang and Vice Versa? #66
Replies: 4 comments 3 replies
-
Good idea! It's actually already possible (users just have to provide their own extensions). This "just" has to be documented.
The latest version ( |
Beta Was this translation helpful? Give feedback.
-
Hi, Just got frankenphp online and it's looking pretty incredible, and it's great to have a clean backend. I guess similar to the OP, can go libs be used in PHP? I'm going to check out the php-go project, but wondering how it could be done, if possible, in franken itself? If not, and php-go has to be used, anyone have any implementation/integration ideas? It'd be incredible if PHP could call the go ecosystem, use libs, goroutines? async,? And with a modern engine and so lightweight, awesome! I saw these benchmarks: Which led me to this project and I'm on pins and needles! :) Best, Hans |
Beta Was this translation helpful? Give feedback.
-
Discussion #1022 also has some information on this. It really would be great to get some official documentation on it - calling php and go from each other. |
Beta Was this translation helpful? Give feedback.
-
Sorry to bother about this again and yes, I know that comparing solutions randomly like this is counter-productive, but... RR's customization features are killer ones, at least for me, to choose between one instead of another |
Beta Was this translation helpful? Give feedback.
-
Hey,
I am thoroughly impressed by FrankenPHP - especially the relatively little amount of code for such a huge functionality.
I plan to try it out with NeosCMS really soon 😀
A related question: do you plan to add a general "call_go_func" from within PHP code (and maybe also the other way around?) that would imho be huge, and I imagine it would be quite little work.
Would be curious to hear your thoughts about it :)
All the best,
Sebastian
PS out of curiosity, how many changes were needed on plain PHP? I somehow could not find the diff you added to PHP 8.2 to make all this work.
Beta Was this translation helpful? Give feedback.
All reactions