Slideshare.net (beta)

 
Post: 
Myspace Hi5 Friendster Xanga LiveJournal Facebook Blogger Tagged Typepad Freewebs BlackPlanet gigya icons

All comments

Add a comment on Slide 1

If you have a SlideShare account, login to comment; else you can comment as a guest


Showing 1-50 of 2 (more)

San Francisco PHP Meetup Presentation on Zend Framework

From zend, 5 months ago

4559 views  |  0 comments  |  2 favorites  |  162 downloads  |  6 embeds (Stats)
Embed
options

More Info

This slideshow is Public
Total Views: 4559
on Slideshare: 3561
from embeds: 998

Slideshow transcript

Slide 1: ZEND FRAMEWORK 1.5 LATEST FEATURES ‘The ZF 1.5 Traveling Roadshow’ Wil Sinclair, Zend Development Manager – wil /at/ zend /dot/ com Bradford Cottel, Zend Evangelist – brad /at/ zend /dot/ com Copyright © 2007, Zend Technologies Inc.

Slide 2: ZEND FRAMEWORK 1.5 • Why Zend Framework? • Users, press, books: media coverage • Downloads / distribution of your APIs • Want to contribute to Zend Framework? • Other contributors • Major features & benefits for ZF 1.5 and let’s code w/it (Wil) Zend Framework 1.5 Latest Features | 2

Slide 3: WHY ZEND FRAMEWORK? COLLABORATION PROJECT HISTORY Copyright © 2007, Zend Technologies Inc.

Slide 4: PHP Collaboration Project—genesis of ZF + PHP Community Framework Best Practices PHP Open Language Source SOA, Web Services, Open etc. IDE Zend Framework 1.5 Latest Features | 4

Slide 5: Zend Framework—In a nutshell The leading open-source PHP framework has a flexible architecture that lets you easily build modern web applications and web services Zend Framework 1.5 Latest Features

Slide 6: ZEND FRAMEWORK ADVANTAGES • Best Practices—As an exemplar ZF is best practice. • Productive—reuse code quickly and often. • Simple & Easy—just like PHP, ZF is easy to adopt. • Extensible & Flexible—customize & add your value. • High Quality—rigorously tested + built-in tests to use. • Friendly License—new BSD = reuse code however you like; Apache-like CLA = safety for corporations. • Modern—web services, syndication, AJAX, search, + Zend Framework 1.5 Latest Features | 6

Slide 7: ZEND FRAMEWORK FACTS • 400+ registered contributors • Large enterprise contributors • 140,000 lines of PHP code • 87,000 words of documentation translated into 5 major languages • Over 500 code examples in ZF Reference Guide • As of 01-Mar-2008: 4,000,000+ raw downloads, 500,000+ uniques Zend Framework 1.5 Latest Features | 7

Slide 8: USERS, PRESS, AND BOOKS: ZF NEWS Copyright © 2007, Zend Technologies Inc.

Slide 9: SELECTED ZEND FRAMEWORK USERS Others: Zend Framework 1.5 Latest Features | 9

Slide 10: PRESS COVERAGE Zend Framework 1.5 Latest Features | 10

Slide 11: ZEND FRAMEWORK BOOKS Zend Framework 1.5 Latest Features | 11

Slide 12: DOWNLOAD TRENDS & FRAMEWORK COMPONENTS OUR FOCUS: WEB SERVICES Copyright © 2007, Zend Technologies Inc.

Slide 13: ZEND FRAMEWORK — DOWNLOADS Total (raw) downloads 4.1 million+ Total (net) “uniques” 506,000+ Zend Framework Downloads (Q1 2008 projected: Jan-Feb x 1.5) 125,000 1,250,000 100,000 1,000,000 Raw Downloads Net Downloads 75,000 750,000 Net Raw 50,000 500,000 25,000 250,000 0 0 Q1-2006 Q2-2006 Q3-2006 Q4-2006 Q1-2007 Q2-2007 Q3-2007 Q4-2007 Q1-2008 Quarter Zend Framework 1.5 Latest Features | 13

Slide 14: ZEND FRAMEWORK – COMPONENTS Zend Framework 1.5 Latest Features | 14

Slide 15: WOULD YOU LIKE TO CONTRIBUTE TO ZEND FRAMEWORK? Copyright © 2007, Zend Technologies Inc.

Slide 16: CONTRIBUTION PROCESS •Community member contributes to Zend Framework •Community-at-large and core team review contribution •Revised, taken into “lab,” or OK’d for “incubator” •Code is integrated & tested with Zend Framework •Code is built into Zend Framework and becomes a part of core Zend Framework 1.5 Latest Features | 16

Slide 17: BSD LICENSE ~ That’s it, the whole thing New BSD License Copyright (c) 2006-2007, Zend Technologies USA, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Zend Technologies USA, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Zend Framework 1.5 Latest Features | 17

Slide 18: CONTRIBUTOR LICENSE AGREEMENT Apache-like ~ well-respected • You retain rights to other uses - This license is for your protection as a Contributor as well as the protection of Zend and its users; it does not change your rights to use your own Contributions for any other purpose. You reserve all right, title, and interest in and to Your Contributions. • This is your original contribution - You represent that each of Your Contributions is Your original creation • You can submit other open-source code, but must justify - Should You wish to submit work that is not Your original creation, You may submit it to the Company separately from any Contribution, identifying the complete details of its source and of any license or other restriction (patents or copyright). • You don’t have to provide support for your contribution, but you can, if you wish -You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Zend Framework 1.5 Latest Features | 18

Slide 19: OTHER CURRENT PARTNERS Copyright © 2007, Zend Technologies Inc.

Slide 20: CURRENT APIs & WEB SERVICES Our Technology “We have created a StrikeIron API in Zend Framework Partners: because of its Web services consumption capabilities and the momentum it is experiencing as a platform for developing Web applications. This makes it extremely easy for PHP developers to access multiple StrikeIron services in a consistent way, greatly extending the capabilities of Web apps that utilize Zend Framework.” — Bob Brauer, CEO StrikeIron Web Services we include as a part of simpy del.icio.us Zend Framework: Zend Framework 1.5 Latest Features | 20

Slide 21: VENDOR APIs IN ZEND FRAMEWORK Zend Framework 1.5 Latest Features | 21

Slide 22: THE DEVELOPER’S FRAMEWORK THINGS YOU SHOULD KNOW + LET’S LOOK AT SOME CODE Copyright © 2007, Zend Technologies Inc.

Slide 23: 10 Things Every Developer Should Know about Zend Framework 2. Use-at-will architecture 3. Convention AND configuration 4. Object Oriented, and not ashamed of it 5. Web Services are first-class citizens 6. It’s backed by Zend (well, duh!) 7. Ajax is not an afterthought 8. Only pure PHP implementation of Lucene 9. A huge community that is just an email away 10.Identity 2.0 11.Documentation up the wazoo And just in case you forget one of those. . . • Hosting will not be a problem • We would never force a technology down your throat Zend Framework 1.5 Latest Features | 23

Slide 24: How to Convince your Boss • License and CLA policy couldn’t be more business-friendly • Training • Support • Certification • Enterprise features like LDAP and SOAP • It’s used by gi-normous multi-national corporations, so it must be good enough for us • PHP has been proven to reduce stress • It’s not just backed by Zend, it’s backed by a who’s-who of technology partners Zend Framework 1.5 Latest Features | 24

Slide 25: New Features in 1.5 • Zend_Form • Zend_Layout • LDAP Authentication • Open ID • Infocard • Advanced Lucene Queries • UTF-8 Support in Zend_Pdf • New Gdata API’s for YouTube, GBase, etc. • Zend_Build and CLI Tooling? • Take a Look for Yourself: http://framework.zend.com/issues/secure/IssueNavigator.jspa?requestId=10661 Zend Framework 1.5 Latest Features | 25

Slide 26: Zend_Form Teaser Architecture • Base classes  forms  elements  display groups  sub forms • Plugins  filters  validators  decorators  elements • Utilities  plugin loaders  translators Zend Framework 1.5 Latest Features | 26

Slide 27: Zend_Form Teaser Zend_Form • Model Forms  Store and manipulate collections of elements and groups of elements  Validate attached elements and sub forms  Store and manipulate decorators for rendering the form Zend Framework 1.5 Latest Features | 27

Slide 28: Zend_Form Teaser • Element types: Zend_Form_Element  Button  Checkbox  Hash (CSRF protection) • Store and manipulate  Hidden element metadata  Image • Store and manipulate  MultiCheckbox validator chains  Multiselect • Store and manipulate  Password filter chains  Radio • Store and manipulate  Reset decorators for rendering  Select element  Submit • Base class:  Text Zend_Form_Element  Textarea Zend Framework 1.5 Latest Features | 28

Slide 29: Zend_Form Teaser Zend_Form_DisplayGroup • Group elements visually when rendering • Collection of one or more elements • Order display group in form, and elements within display group Zend Framework 1.5 Latest Features | 29

Slide 30: Zend_Form Teaser Zend_Form_SubForm • Group elements logically  For display purposes  For validation purposes • Potential uses  Multi-page forms (each sub form used per page)  Dynamic forms (e.g., todo list, where each todo item is it's own mini-form) Zend Framework 1.5 Latest Features | 30

Slide 31: Zend_Form Teaser Plugins • Utilizes Zend_Loader_PluginLoader for loading plugin classes • Specify alternate class prefixes and paths to load:  new plugins  alternate versions of standard plugins • Powerful and easy way to extend Zend_Form functionality Zend Framework 1.5 Latest Features | 31

Slide 32: Zend_Form Teaser Plugins: Filters • Normalize or filter • Some available filters: input prior to  Alnum  Alpha validation  Digits • Uses Zend_Filter  HtmlEntities classes by default  StringToLower  StringToUpper  StringTrim  StripTags Zend Framework 1.5 Latest Features | 32

Slide 33: Zend_Form Teaser Plugins: Validators • Validate input • Some available against one or more validators:  Alnum rules  Alpha • Uses Zend_Validate  Date classes by default  EmailAddress  InArray  Int  Regex  StringLength Zend Framework 1.5 Latest Features | 33

Slide 34: Zend_Form Teaser Plugins: Decorators • Render elements • Some available and forms by decorators:  Callback decorating them  Description • Uses pseudo-  Errors Decorator pattern  Fieldset • More later...   Form HtmlTag  Label  ViewHelper  ViewScript Zend Framework 1.5 Latest Features | 34

Slide 35: Zend_Form Teaser Plugins: Elements! • Elements are loaded as plugins in Zend_Form • You can create your own versions of standard elements, and still utilize Zend_Form's element factory methods Zend Framework 1.5 Latest Features | 35

Slide 36: Zend_Form Teaser Utilities • Plugin Loaders  Load plugins  Register class prefixes and paths • Translators  Zend_Translate and its adapters  Translate error messages and other translatable items Zend Framework 1.5 Latest Features | 36

Slide 37: Zend_Form Teaser The Login Form Zend Framework 1.5 Latest Features | 37

Slide 38: Zend_Form Teaser Create elements: Username: • Multiple filters (filter chain!) • Multiple validators (validator chain!) • Required • Don't forget the label! Zend Framework 1.5 Latest Features | 38

Slide 39: Zend_Form Teaser Create elements: Password • Single filter • Single validator • Required • Don't forget the label! Zend Framework 1.5 Latest Features | 39

Slide 40: Zend_Form Teaser Create elements: the Login button • Need to display the button • But we don't want to validate it or include it when pulling values Zend Framework 1.5 Latest Features | 40

Slide 41: Zend_Form Teaser Create the Form object: • Attach elements • Check if valid – does all input filtering • Pass it to the view Zend Framework 1.5 Latest Features | 41

Slide 42: Zend_Form Teaser Create the view script: • Much shorter! Zend Framework 1.5 Latest Features | 42

Slide 43: Zend_Form Teaser And. . . Viola! Zend Framework 1.5 Latest Features | 43

Slide 44: Zend_Form Teaser Results when submitting empty values: • Note: required flag has a correlation with the errors reported Zend Framework 1.5 Latest Features | 44

Slide 45: Zend_Form Teaser Results when submitting invalid values: • Note: errors are reported! Zend Framework 1.5 Latest Features | 45

Slide 46: What the Future Holds for ZF • We go medieval on the documentation • Zend_Build and CLI • Ajax like you’ve never seen before • Deep integration with all your favorite tools and platforms, starting with Zend Studio, Platform, and Core • Developer tools and packaging for distributing 3rd party components • More partnerships to bring the latest must-have technology to you straight from the horse’s mouth • Improved proposal process and even more transparency for our community • More best practices, more features, more fun! Zend Framework 1.5 Latest Features | 46

Slide 47: Want to Know More? Keep your eye on: http://framework.zend.com/ Zend Framework 1.5 Latest Features | 47

Slide 48: THANKS ! Copyright © 2007, Zend Technologies Inc.