Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Zend framework 01 - introduction

1,048 views

Published on

An introduction to Zend Framework

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Zend framework 01 - introduction

  1. 1. Zend Framework 1. An introduction Tricode Professional Services www.tricode.nl Date: 14-12-2008 Author: Sander van Beek
  2. 2. Requirements <ul><li>Basic knowledge of PHP5 and Object Orientated programming (preferrably Zend certified) </li></ul><ul><li>Pen and paper </li></ul><ul><li>Pc with Wamp / Xamp installation </li></ul><ul><li>Internet connection </li></ul>
  3. 3. Introduction <ul><li>“ Zend Framework is an open source, object oriented web application framework for PHP 5. ZF is often called a 'component library', because it has many loosely coupled components that you can use more or less independently. But Zend Framework also provides an advanced model-view-controller (MVC) implementation that can be used to establish a basic structure for your ZF applications.” </li></ul>
  4. 4. Overview <ul><li>“ Component library” </li></ul><ul><li>BSD-style open source license </li></ul><ul><li>Big community – www.zendframework.com </li></ul><ul><li>Zend: the PHP company </li></ul><ul><li>ZF coding standard </li></ul><ul><li>Latest version: 1.7 </li></ul>
  5. 5. Users
  6. 6. Statistics <ul><li>More than 7 Million Downloads </li></ul><ul><li>More than 500 Contributors </li></ul><ul><li>More than 1000 pages in the Reference Guide </li></ul><ul><li>More than 500 Examples in the Reference Guide </li></ul><ul><li>Almost 2 million hits on Google </li></ul><ul><li>More than 750 hits currently on Technorati </li></ul><ul><li>More than 60 projects based on or extending Zend Framework at SourceForge </li></ul><ul><li>More than 30 projects based on or extending Zend Framework at Google Code </li></ul><ul><li>More than 3000 resolved issues in the Issue Tracker </li></ul>
  7. 7. Why Zend Framework? <ul><li>Simplicity (most commonly needed functionality – 80/20 rule) </li></ul><ul><li>Extensible and well-tested code base </li></ul><ul><li>Flexible architecture (use what you need) </li></ul><ul><li>No configuration files necessary to get going </li></ul>
  8. 8. Components
  9. 9. Coding standard <ul><li>Basis for tricode coding standard </li></ul><ul><li>Highlights: </li></ul><ul><li>lowerCamelCase </li></ul><ul><li>Private/protected attributes or methods prefixed with _ </li></ul><ul><li>Naming convention suited for autoloading </li></ul><ul><ul><li>Class: Zend_Framework_Class </li></ul></ul><ul><ul><li>File: Zend/Framework/Class.php </li></ul></ul><ul><li>On one page: http://raphael.stolt.googlepages.com/ZendFramework_coding_standards_on_on.pdf </li></ul>
  10. 10. Good habits <ul><li>Don’t use closing tags (?>) </li></ul><ul><li>Throw custom exceptions in your extensions. </li></ul><ul><li>Exception hierarchy: </li></ul><ul><li>Exception -> Zend_Exception -> Zend_Db_Exception </li></ul><ul><li>Don’t use globals (anti-pattern) </li></ul><ul><li>Use @package and @subpackage annotations in docblocks </li></ul><ul><li>Fluent interfaces ( $obj->a()->b()->c(); ) </li></ul><ul><li>Use SVN externals instead of copying the framework </li></ul>
  11. 11. Contributing <ul><li>Sign the contributor license </li></ul><ul><li>Subscribe to one or more mailing lists </li></ul><ul><li>Learn the coding standard & phpunit </li></ul><ul><li>Join a project team </li></ul><ul><li>See http://framework.zend.com/wiki/display/ZFDEV/Contributing+to+Zend+Framework </li></ul>

×