Your SlideShare is downloading. ×
  • Like
Zend framework 01 - introduction
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Zend framework 01 - introduction

  • 823 views
Published

An introduction to Zend Framework

An introduction to Zend Framework

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
823
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
17
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

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