You can use ZendAMF and AMFPHP, they're both perfect for what you're looking for. You'll need to make sure your front and back end code is up to good quality so that you're able to call the PHP method: MyRemoteConnection.myMethod(myVars)
Both generate solidity in establishing a steady connection and security as well.
Both generate solidity in establishing a steady connection and security as well.