kitech / php-go

Write PHP extension using go/golang. Zend API wrapper for go/golang.
882 stars 108 forks source link

Go call PHP function or callbacks or send signals back #45

Open TCB13 opened 5 years ago

TCB13 commented 5 years ago

Hello,

I was wondering if its possible to have some code in Go calling a callback in the PHP code. Example: If I set a socket server in Go I would like to be able to call a PHP function to handle incoming data whenever data is available.

Thank you.