San Francisco PHP Meetup Presentation on Zend Framework
Upcoming SlideShare
Loading in...5
×
 

San Francisco PHP Meetup Presentation on Zend Framework

on

  • 40,024 views

 

Statistics

Views

Total Views
40,024
Views on SlideShare
38,470
Embed Views
1,554

Actions

Likes
6
Downloads
271
Comments
0

9 Embeds 1,554

http://devzone.zend.com 1337
http://tech.amikelive.com 102
http://elblogdeinwe.com 84
http://www.planetacodigo.com 16
http://www.slideshare.net 9
http://translate.googleusercontent.com 3
http://www.blogger.com 1
https://devzone.zend.com 1
http://www.e-presentations.us 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

San Francisco PHP Meetup Presentation on Zend Framework San Francisco PHP Meetup Presentation on Zend Framework Presentation Transcript

  • ‘ 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 ZEND FRAMEWORK 1.5 LATEST FEATURES
  • 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 |
  • WHY ZEND FRAMEWORK? COLLABORATION PROJECT HISTORY
  • Zend Framework 1.5 Latest Features | PHP Collaboration Project—genesis of ZF + Open IDE Best Practices PHP Framework SOA, Web Services, etc. Open Source Community PHP Language
  • 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
  • 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
  • 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
  • USERS, PRESS, AND BOOKS: ZF NEWS
  • SELECTED ZEND FRAMEWORK USERS Others: | Zend Framework 1.5 Latest Features
  • PRESS COVERAGE | Zend Framework 1.5 Latest Features
  • ZEND FRAMEWORK BOOKS | Zend Framework 1.5 Latest Features
  • DOWNLOAD TRENDS & FRAMEWORK COMPONENTS OUR FOCUS: WEB SERVICES
  • ZEND FRAMEWORK — DOWNLOADS | Total (raw) downloads 4.1 million+ Total (net) “uniques” 506,000+ Zend Framework 1.5 Latest Features
  • ZEND FRAMEWORK – COMPONENTS | Zend Framework 1.5 Latest Features
  • WOULD YOU LIKE TO CONTRIBUTE TO ZEND FRAMEWORK?
  • 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
  • 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
  • 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
  • OTHER CURRENT PARTNERS
  • CURRENT APIs & WEB SERVICES | “ We have created a StrikeIron API in Zend Framework 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 Zend Framework: simpy del.icio.us Our Technology Partners: Zend Framework 1.5 Latest Features
  • | VENDOR APIs IN ZEND FRAMEWORK Zend Framework 1.5 Latest Features
  • THE DEVELOPER’S FRAMEWORK THINGS YOU SHOULD KNOW + LET’S LOOK AT SOME CODE
  • 10 Things Every Developer Should Know about Zend Framework
    • Use-at-will architecture
    • Convention AND configuration
    • Object Oriented, and not ashamed of it
    • Web Services are first-class citizens
    • It’s backed by Zend (well, duh!)
    • Ajax is not an afterthought
    • Only pure PHP implementation of Lucene
    • A huge community that is just an email away
    • Identity 2.0
    • 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
  • 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
  • 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
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features
    • Base classes
      • forms
      • elements
      • display groups
      • sub forms
    • Plugins
      • filters
      • validators
      • decorators
      • elements
    • Utilities
      • plugin loaders
      • translators
    Architecture
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features 5 Mar 2008 | Page 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_Form Teaser | Zend Framework 1.5 Latest Features
    • Store and manipulate element metadata
    • Store and manipulate validator chains
    • Store and manipulate filter chains
    • Store and manipulate decorators for rendering element
    • Base class: Zend_Form_Element
    • Element types:
      • Button
      • Checkbox
      • Hash (CSRF protection) ‏
      • Hidden
      • Image
      • MultiCheckbox
      • Multiselect
      • Password
      • Radio
      • Reset
      • Select
      • Submit
      • Text
      • Textarea
    Zend_Form_Element
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features
    • Group elements visually when rendering
    • Collection of one or more elements
    • Order display group in form, and elements within display group
    Zend_Form_DisplayGroup
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features
    • 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_Form_SubForm
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features
    • 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
    Plugins
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features
    • Normalize or filter input prior to validation
    • Uses Zend_Filter classes by default
    • Some available filters:
      • Alnum
      • Alpha
      • Digits
      • HtmlEntities
      • StringToLower
      • StringToUpper
      • StringTrim
      • StripTags
    Plugins: Filters
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features
    • Validate input against one or more rules
    • Uses Zend_Validate classes by default
    • Some available validators:
      • Alnum
      • Alpha
      • Date
      • EmailAddress
      • InArray
      • Int
      • Regex
      • StringLength
    Plugins: Validators
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features
    • Render elements and forms by decorating them
    • Uses pseudo-Decorator pattern
    • More later...
    • Some available decorators:
      • Callback
      • Description
      • Errors
      • Fieldset
      • Form
      • HtmlTag
      • Label
      • ViewHelper
      • ViewScript
    Plugins: Decorators
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features
    • 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
    Plugins: Elements!
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features
    • Plugin Loaders
      • Load plugins
      • Register class prefixes and paths
    • Translators
      • Zend_Translate and its adapters
      • Translate error messages and other translatable items
    Utilities
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features The Login Form
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features Create elements: Username:
    • Multiple filters (filter chain!) ‏
    • Multiple validators (validator chain!) ‏
    • Required
    • Don't forget the label!
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features Create elements: Password
    • Single filter
    • Single validator
    • Required
    • Don't forget the label!
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features 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_Form Teaser | Zend Framework 1.5 Latest Features Create the Form object:
    • Attach elements
    • Check if valid – does all input filtering
    • Pass it to the view
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features Create the view script:
    • Much shorter!
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features And. . . Viola!
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features Results when submitting empty values:
    • Note: required flag has a correlation with the errors reported
  • Zend_Form Teaser | Zend Framework 1.5 Latest Features Results when submitting invalid values:
    • Note: errors are reported!
  • 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 3 rd 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
  • Want to Know More? | Zend Framework 1.5 Latest Features Keep your eye on: http://framework.zend.com/
  • THANKS !