Legal
The views expressed in this blog are my own and do not necessarily reflect the views of Adobe Systems Incorporated.
Search
December 12, 2006
AMFPHP Adds AMF3 / Flex Support
The AMFPHP project, headed by Patrick Mineault, has added support for AMF3, the newest AMF protocol that's used by Adobe Flex and ActionScript 3. (There's a preview release of ActionScript 3 for Flash Professional on Adobe Labs.)
This means that developers now have 3 choices when choosing which PHP package to use for Flex remoting. AMFPHP, SabreAMF and WebORB from the Midnight Coders all offer AMF3 support. They are all open source projects, with the WebORB project being the only one backed by a commercial entity.
Remoting scripts like these allow PHP developers to write applications that can translate PHP objects directly into ActionScript objects in Flex and Flash projects. Without these projects, PHP developers can still build solutions that output XML (REST interfaces), and then read in that XML with Flex and ActionScript directly. However, using one of the above projects allows you to bypass serializing data into XML and then deserializing it on the client - you can transfer objects, arrays and other data types directly from the backend server to the Flex / Flash application.
What's this mean for developers? Although its more complicated to learn, its more powerful than transfering XML data... For example, when querying a MySQL database, you can transfer the mysql_result object back to the client directly: it will be available to you as an array, and you can access the items in the array directly, without having to decode any XML.
Developers interested in building RIA solutions with PHP should check out the PHP RIA SDK by Adobe. This open source project contains libraries and a number of samples that show PHP developers how to build rich Internet applications with Flex, Flash and the Spry Ajax framework. There's also a mailing list available.
technorati tags:php, flex, amfphp, sabreamf, midnightcoders, phpriasdk
Comments
Thank you for signing in, You may now comment. (Sign Out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)