Hi Scott, Since PHP is a dynamic language, I think the best way to implement PHP support would be to use the dynamic API. There's some notes on this at the bottom of this page:
https://capnproto.org/otherlang.html#supporting-dynamic-languages You can also look at the Python and Node.js implementations for examples. It would be pretty great to have a PHP implementation of Cap'n Proto -- would be really useful for Sandstorm apps written in PHP! -Kenton On Tue, Jan 24, 2017 at 5:35 PM, <[email protected]> wrote: > Hey guys, > > We build and maintain a fairly large server stack for mobile games. We > are currently using a internally developed protocol but we are considering > using cap'n proto for our next protocol format. Our platform is currently > written in PHP and we are looking at other languages going forward, however > we still need to maintain support for PHP. My current thinking is that we > embed the generated C++ classes within our existing PHP extension, which > will provide speed and simplicity benefits as the same protocol code is > being used between the client and server. Following the advice from the > cap'n proto website, I'm posting here for feedback. Do you guys think this > is the best way to tackle the problem, or has someone already written a > nifty PHP solution that I haven't seen yet? > > Cheers, > Scott > > -- > You received this message because you are subscribed to the Google Groups > "Cap'n Proto" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/group/capnproto. > -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/capnproto.
