Search code examples
phpjsonamfamfphp

faster amfPHP alternative


i'm a little shocked how slow amfPHP is. I've compared the overall performance of AMF and JSON Requests.

Both way's where measured from the beginning of the request till having strongly typed data on Actionscript Site.

The JSON way was always more than twice faster.

I'm normaly running on a Java Backend, but now i'm forced to PHP.

Does someone knows a better support of AMF in the PHP world. FlashBuilder comes with integrated support of Zend AMF. But it is slow as amfPHP.

THX for Help


Solution

  • There is a free, fast and extremely reliable PHP AMF3 extension:

    http://neoxic.me/php-amf3/

    It provides two native functions - amf3_encode() and amf3_decode(). No mess, pure speed!