SlideShare una empresa de Scribd logo
1 de 16
Descargar para leer sin conexión
Wade Arnold
       Wade.arnold@t8design.com



Leveraging the
Zend Framework for
your next Flex RIA
What is Zend Amf?
 Zend Amf is an open source
 implementation of Adobe’s AMF (Action
 Messaging Format) which is the binary
 protocol that the Flash Player uses to store
 objects.
  Zend Amf is an alternative to
 Adobe’s LiveCycle Data Services ES with
 PHP as the endpoint rather than Java.
 Zend Amf allows a seamless connection
 between the Flash Player and PHP
 classes.
By leveraging the AMF protocol there is no
additional client side work in order to
encode and decode data objects that are
sent to and from the server.
Zend Amf acts as a gateway to PHP and
through serialization transforms the data
types between ActionScript into PHP.
What is AMF?

 Action Message Format(AMF) is a binary
 file format representing a serialized
 ActionScript object. The AMF file type is
 used throughout the Flash Player for data
 storage and data exchange. For example
 in the Flash Player AMF is used in
 SharedObjects, RemoteObjects,
 LocalConnection, ByteArray, RTMP, and
 all RPC operations. You can serialize any
 object in Flash Player with the only
 exception being a displayObject.
 File Size – AMF objects are very small and
 are compressed using zlib.
What is AMF?
 Fast Serialization/ Deserialization – AMF is
 transformed using native C code in the
 Flash Player making it very fast. The AMF
 format was designed to serialize and
 deserialize quickly under low memory and
 slower CPU conditions making it perfect for
 the web.
 AMF data is parsed directly into objects,
 meaning there is no lag for interpretation or
 parsing of AMF making the creation of
 objects complete in a single pass.
Why use Zend Amf?
 It handles the conversion of data types
 between ActionScript and PHP.
 It can convert complex objects and
 supports class mapping.
 It allows you to make direct calls to server
 side methods, which eliminates time spent
 developing parsers in Flash and PHP.
 AMF serialization is part of the Flash
 Player, which decreases the code footprint
 and optimizes server communication.
Why use Zend Amf?
 It is simple to start using on any web server
 that runs PHP 5.2.3 or above.
 Services are “non-specific” PHP classes
 that are portable without any code change.
 Easily separate the workload of
 ActionScript programmers from PHP
 programmers and let each use best of
 bread tools for development.
Service Census

 http://www.jamesward.com/census/
Your first Service (demo)
 Look at PHP HelloWorld
 Connect with Flash CS3
 Connect with Flex 3
Class Mapping
 $Object->getClassName
 //”com.MyFlashClass”

 @ClassMap com.MyFlashClass

 $object = new
 Zend_Amf_Value_TypedObject(‘com.MyFlashClas
 s',$data);

 Zend_Amf_ClassMap::registerClass(“com.MyFlas
 hClass”, “MyPhpClass”);
Why Zend Amf
 PHP runs the internet for a reason
 Flash/Flex enable a greater level of
 expression
 Tested*
 Backed by Adobe & Zend
Questions?

Más contenido relacionado

Más de ZendCon

Más de ZendCon (20)

PHP on IBM i Tutorial
PHP on IBM i TutorialPHP on IBM i Tutorial
PHP on IBM i Tutorial
 
PHP on Windows - What's New
PHP on Windows - What's NewPHP on Windows - What's New
PHP on Windows - What's New
 
PHP and Platform Independance in the Cloud
PHP and Platform Independance in the CloudPHP and Platform Independance in the Cloud
PHP and Platform Independance in the Cloud
 
I18n with PHP 5.3
I18n with PHP 5.3I18n with PHP 5.3
I18n with PHP 5.3
 
Cloud Computing: The Hard Problems Never Go Away
Cloud Computing: The Hard Problems Never Go AwayCloud Computing: The Hard Problems Never Go Away
Cloud Computing: The Hard Problems Never Go Away
 
Planning for Synchronization with Browser-Local Databases
Planning for Synchronization with Browser-Local DatabasesPlanning for Synchronization with Browser-Local Databases
Planning for Synchronization with Browser-Local Databases
 
Magento - a Zend Framework Application
Magento - a Zend Framework ApplicationMagento - a Zend Framework Application
Magento - a Zend Framework Application
 
Enterprise-Class PHP Security
Enterprise-Class PHP SecurityEnterprise-Class PHP Security
Enterprise-Class PHP Security
 
PHP and IBM i - Database Alternatives
PHP and IBM i - Database AlternativesPHP and IBM i - Database Alternatives
PHP and IBM i - Database Alternatives
 
Zend Core on IBM i - Security Considerations
Zend Core on IBM i - Security ConsiderationsZend Core on IBM i - Security Considerations
Zend Core on IBM i - Security Considerations
 
Application Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server TracingApplication Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server Tracing
 
Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...
Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...
Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...
 
Solving the C20K problem: Raising the bar in PHP Performance and Scalability
Solving the C20K problem: Raising the bar in PHP Performance and ScalabilitySolving the C20K problem: Raising the bar in PHP Performance and Scalability
Solving the C20K problem: Raising the bar in PHP Performance and Scalability
 
Joe Staner Zend Con 2008
Joe Staner Zend Con 2008Joe Staner Zend Con 2008
Joe Staner Zend Con 2008
 
Tiery Eyed
Tiery EyedTiery Eyed
Tiery Eyed
 
Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...
Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...
Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...
 
DB2 Storage Engine for MySQL and Open Source Applications Session
DB2 Storage Engine for MySQL and Open Source Applications SessionDB2 Storage Engine for MySQL and Open Source Applications Session
DB2 Storage Engine for MySQL and Open Source Applications Session
 
Digital Identity
Digital IdentityDigital Identity
Digital Identity
 
Modernizing i5 Applications
Modernizing i5 ApplicationsModernizing i5 Applications
Modernizing i5 Applications
 
Lesser Known Security Problems in PHP Applications
Lesser Known Security Problems in PHP ApplicationsLesser Known Security Problems in PHP Applications
Lesser Known Security Problems in PHP Applications
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

Leverage ZEND Framework for your next Flex RIA

  • 1. Wade Arnold Wade.arnold@t8design.com Leveraging the Zend Framework for your next Flex RIA
  • 2. What is Zend Amf? Zend Amf is an open source implementation of Adobe’s AMF (Action Messaging Format) which is the binary protocol that the Flash Player uses to store objects. Zend Amf is an alternative to Adobe’s LiveCycle Data Services ES with PHP as the endpoint rather than Java. Zend Amf allows a seamless connection between the Flash Player and PHP classes.
  • 3. By leveraging the AMF protocol there is no additional client side work in order to encode and decode data objects that are sent to and from the server. Zend Amf acts as a gateway to PHP and through serialization transforms the data types between ActionScript into PHP.
  • 4.
  • 5. What is AMF? Action Message Format(AMF) is a binary file format representing a serialized ActionScript object. The AMF file type is used throughout the Flash Player for data storage and data exchange. For example in the Flash Player AMF is used in SharedObjects, RemoteObjects, LocalConnection, ByteArray, RTMP, and all RPC operations. You can serialize any object in Flash Player with the only exception being a displayObject. File Size – AMF objects are very small and are compressed using zlib.
  • 6. What is AMF? Fast Serialization/ Deserialization – AMF is transformed using native C code in the Flash Player making it very fast. The AMF format was designed to serialize and deserialize quickly under low memory and slower CPU conditions making it perfect for the web. AMF data is parsed directly into objects, meaning there is no lag for interpretation or parsing of AMF making the creation of objects complete in a single pass.
  • 7.
  • 8. Why use Zend Amf? It handles the conversion of data types between ActionScript and PHP. It can convert complex objects and supports class mapping. It allows you to make direct calls to server side methods, which eliminates time spent developing parsers in Flash and PHP. AMF serialization is part of the Flash Player, which decreases the code footprint and optimizes server communication.
  • 9. Why use Zend Amf? It is simple to start using on any web server that runs PHP 5.2.3 or above. Services are “non-specific” PHP classes that are portable without any code change. Easily separate the workload of ActionScript programmers from PHP programmers and let each use best of bread tools for development.
  • 10.
  • 12.
  • 13. Your first Service (demo) Look at PHP HelloWorld Connect with Flash CS3 Connect with Flex 3
  • 14. Class Mapping $Object->getClassName //”com.MyFlashClass” @ClassMap com.MyFlashClass $object = new Zend_Amf_Value_TypedObject(‘com.MyFlashClas s',$data); Zend_Amf_ClassMap::registerClass(“com.MyFlas hClass”, “MyPhpClass”);
  • 15. Why Zend Amf PHP runs the internet for a reason Flash/Flex enable a greater level of expression Tested* Backed by Adobe & Zend