PHP and Silverlight


Published on

PHPBenelux talk on PHP and Silverlight

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Maarten t.e.m. rich appsKevin Silverlight
  • Maarten
  • Partial KevPartial Maarten
  • Kev
  • Maarten
  • Maarten
  • Eerst even in browser tonen (SL + de web app zelf)Daarna Eclipse, knopke veranderen, over naar VS en Blend
  • Kev
  • Kev
  • Maarten
  • Maarten
  • Maarten
  • Kev
  • Kev
  • Kev
  • PHP and Silverlight

    1. 1.
    2. 2. PHP and Silverlight<br />
    3. 3. Who are we?<br />Maarten Balliauw – RealDolmen<br />E-mail:<br />Blog:<br />Twitter:<br />Kevin Dockx – RealDolmen<br /><br />Blog:<br />Twitter:<br /><br />
    4. 4. Agenda <br />What is Silverlight?<br />WhySilverlight?<br />WhySilverlight and PHP?<br />Building anapplicationusingboth<br />More onSilverlight<br />Q&A<br />
    5. 5. What is Silverlight?<br />RichApplications are the future, today<br />AdobeFlex<br />Microsoft Silverlight<br />Silverlight<br />“A frameworkforprovidingrichapplications to the browser”<br />“A cross-browser, cross-platformimplementation of the .NET Frameworkfor building and delivering the nextgeneration of Rich Internet Applicationsfor the web”<br />
    6. 6. What is Silverlight?<br />4-5 MB plugin<br />Download once, distributedthrough Windows Update<br />Alsoavailableon Linux (Moonlight) and Mac<br />Runs in browser, on the client<br />Internet Explorer<br />Firefox, Safari, Opera, Chrome<br />Subset of the full .NET Framework<br />Originatedfrom Windows Presentation Foundation<br />Rich UI: XAML / .NET code: C# - VB.NET<br />
    7. 7. WhySilverlight?<br />HTML / PHP / ASPX / AJAX<br />Best days are over…<br />Extending HTML (CSS 3, AJAX, …)<br />“like putting lipstick on a pig”<br />Silverlight<br />Stateful model <br />.NET Framework<br />UI Capabilities<br />Cross-platform<br />
    8. 8. Why Silverlight and PHP?<br />Best of bothworlds?<br />PHP<br />Rapidapplicationprogramming<br />Ideal as back-endusing JSON or SOAP<br />Re-useyourexisting PHP logic<br />Silverlight<br />Rapid user interface development<br />Createrich interfaces using a richframework<br />
    9. 9. Programming Silverlight<br />XAML<br />“an XML file thatdefines user interfaces”<br />Tool: ExpressionBlend (orEclipse)<br />.NET<br />Richframeworkofferingendlesspossibilities<br />Tool: Microsoft Visual Studio (2008, .NET 3.5, SP1) (orEclipse)<br />PHP<br />i.e. Zend Framework<br />Tool: Zend Studio (orEclipse PDT)<br />  Strong separation of UI design & logic<br />
    10. 10. GettingStarted<br />Visual Studio 2008 SP1<br />Silverlight Tools for VS2008 SP1<br />VS2008 Updates<br />Project Templates<br />Runtime<br />SDK<br />ExpressionBlend 2.0 SP1<br />Possibility: Eclipse4SL -<br />Use Web Platform Installer (<br />
    11. 11. Underactivedevelopment (ongoing)<br />Catching up Visual Studio 2008 Silverlighteditingpossibilities<br />Butjustlike VS2008: stillnot the rich designer thatExpressionBlend is…<br />Currently Win & Mac<br />V1.0 releasedtoday! Includes full SL debugging.<br /><br />
    12. 12. Why Eclipse4SL?<br />AllowsEclipsedevelopers to buildRIA withSilverlight<br />AllowsCollaborationbetween<br />Web Designers<br />.NET Developers<br />EclipseDevelopers(Java, PHP, ..)<br />Eclipse Developer<br />Common Project System<br />.NET Developer<br />Web Designer<br />
    13. 13. DEMO<br />Editing a Silverlightsolution<br />
    14. 14. Whataboutmy data?<br />Silverlight does notinclude data namespaces (clienttech)!<br />For most apps, thisforcesyou to use a Service OrientedArchitecture<br />
    15. 15. Communicating with data services<br />Silverlightincludes support for<br />WebClient, WebHttpRequest-classes<br />REST, JSON, SOAP, …<br />Windows Communication Foundation<br />… almostany kind of service canbeaccessed<br />Preferredway to communicate: through WCF<br />BasicHttpBinding (BinaryEncoding)<br />
    16. 16. Zend Framework SOAP<br />What you would expect…<br />
    17. 17. Zend Framework SOAP<br />Reality…<br />
    18. 18. Zend Framework SOAP<br />Zend_Soap_AutoDiscover<br />Generates valid SOAP 1.2<br />Generates almost valid “WS-I Basic Profile 1.1”<br />SilverlightStrategy to fix this<br />Zend_Soap_Server<br />Almost works with WS-I basic Profile 1.1 WSDL<br />DocumentLiteralProxy to fix this<br />
    19. 19. Communicatingwith SOAP service<br />CrossDomain.xml / ClientAccessPolicy.xml<br />Tells SL it/whocanaccess the service<br />Addreference to generate proxy, and initialize<br />Addhandler to completedevent<br />Call service method (Async)<br />
    20. 20. DEMO<br />BarTender – Communicatingwith service<br />
    21. 21. Keywords when working with data<br />DataContext<br />DataBinding<br />INotifyPropertyChanged/CollectionChanged<br />ValueConverters<br />
    22. 22. What else is there?<br />Localization<br />Isolated Storage<br />
    23. 23. Resources – Silverlight toolkit<br />Containscontrols, components, utilities to use in SL apps (MS, sourceavailable)<br />AutoCompleteBox, different Panel controls, UpDowncontrol, Treeview, Expander, …<br />Charting component<br />ImplicitStyleManager<br />Variousthemesincluded<br /><br />
    24. 24. Resources<br /><br /><br /><br />
    25. 25. Questions, possiblyAnswers<br />?<br />
    26. 26. Thanksforbeinghere!<br /> <br /><br />