Best approach to use a CPP SDK package in PHP
I have to integrate into my system a third party system, which gives me a SDK, written in CPP.
Our application uses PHP as the main language. What would be t开发者_如何转开发he best and/or shortest development to expose the needed functionality in the SDK to my PHP application?I've always used thrift, which was developed by Facebook. Not sure your exact use case, but you can easily setup a server in once language then use their code generation engine. It works with C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, and OCaml.
精彩评论