What is Zend Framework?

Zend Framework is a simple, straightforward, open-source software framework for PHP 5 designed to eliminate the tedious details of coding and let you focus on the big picture. One of its strengths is the highly modular Model-View-Controller (MVC) design, making your code more reusable and easier to maintain.

Goals of Zend Framework components

The following lists the components of Zend Framework, each with a brief description and list of goals for each component.

Zend_Acl

Zend_Acl provides lightweight and flexible access control list (ACL) functionality and privileges management.

  • includes basic implementations for both Roles and Resources
  • Roles and Resources may be instances of user-defined classes
  • simplifies the specification of access control rules with inheritance support
  • supports conditional access control rules via an assertion interface

Zend_Auth

Zend_Auth provides an API for authentication and includes concrete authentication adapters for common use case scenarios, as well as "Identity 2.0" adapters such as OpenID and Microsoft InfoCard.

  • provides adapter interface for customized authentication mechanisms
  • automatic identity storage is abstracted for easy customization
  • simple and extensible API

Zend_Cache

Zend_Cache provides a flexible approach toward caching data, including support for tagging, manipulating, iterating, and removing subsets.

  • provides multiple storage back-ends (File, Sqlite, Memcached, etc.)
  • provides multiple front-ends (helpers for caching function or method calls, in addition to caching full pages)
  • simple and flexible for generic uses

Zend_Config

Zend_Config simplifies the use of configuration data for web applications.

  • provides a property-based interface for reading configuration data
  • supports a variety of hierarchical data storage formats
  • supports inheritance of configuration data between two sections

Zend_Console_Getopt

Command-line PHP applications benefit from this convenient object-oriented interface for declaring, parsing, and reporting command-line arguments and options.

  • supports GNU getopt syntax
  • supports more extensive option declaration syntax
  • supports automatic reporting of option usage help

Zend_Controller and Zend_View

These components provide the infrastructure for a Model-View-Controller (MVC) website.

  • provides simple and extensible MVC pattern
  • provides PHP-based template engine by default
  • provides support for application modules
  • provides configuration-less architecture

Zend_Date

Zend_Date offers a detailed but simple API for manipulating dates and times.

  • supports I18N and L10N throughout its API
  • supports ISO and GNU/PHP standard tokens
  • provides handling for dates bigger than 64bit
  • provides sunset and sunrise calculation based on cities

Zend_Db

This is a lightweight database access layer, providing an interface to PDO and other database extensions in PHP. It includes adapters for each database driver, a query profiler, and an API to construct most SELECT statements.

  • provides abstract interface to multiple PHP database extensions
  • based on PDO interface, but extends beyond that
  • provides query profiler
  • provides query builder
  • provides robust SQL support including parameters and quoting

Zend_Db_Table

The Zend_Db_Table component is a lightweight solution for object-oriented programming with databases.

Zend_Feed

This component provides a very simple way to work with live syndicated feeds.

  • consumes RSS and Atom feeds
  • provides utilities for discovering feed links
  • imports feeds from multiple sources
  • provides feed building and posting operations

Zend_Filter and Zend_Validate

These components encourage the development of secure websites by providing the basic tools necessary for input filtering and validation.

  • provide an extensible architecture for filters and validators
  • support Unicode text data
  • support user-configurable messages for validation failures

Zend_Filter_Input

This is a configurable solution for declaring and enforcing filtering and validation rules. This component serves as a "cage" for input data, so they are available to your application only after being validated.

  • does not require configuration files
  • supports declarative syntax for applying rules to collections of input data
  • supports chaining of filters and validators
  • supports automatic escaping of validated data values

Zend_Form

This component provides an object-oriented interface for building forms, complete with input filtering and rendering capabilities.

  • provides classes for elements, forms, display groups, and sub forms
  • supports per-element input filters
  • supports per-element validations, including context-sensitive validations
  • supports per-element, group, and form rendering via flexible decorators
  • extensive plugin system for customizing all aspects of forms and elements

Zend_Gdata (Zend Google Data Client)

The Google Data APIs provide read/write access to such services hosted at google.com as Spreadsheets, Calendar, Blogger, and CodeSearch.

  • supports both authentication mechanisms of Google Data servers
  • supports queries and posting changes against Google Data services
  • supports service-specific element types in an object-oriented interface
  • matches functionality and design of other Google Data API clients

Zend_Http_Client

This component provides a client for the HTTP protocol, without requiring any PHP extensions. It drives our web services components.

  • supports URL validation
  • supports cookies
  • supports proxy servers

Zend_Json

Easily convert PHP structures into JSON and vice-versa for use in AJAX-enabled applications.

  • uses PHP's ext/json when available
  • supports decoding Javascript objects to native PHP structures
  • supports encoding native PHP objects to JSON notation
  • supports XML to JSON conversions

Zend_Layout

Easily provide sitewide layouts for your MVC applications.

  • supports use with or without MVC layer
  • decorates Zend_View, inheriting capabilities of that component
  • provides a variety of helpers and plugins for accessing the layout object from within other MVC components

Zend_Loader

Load files, classes, and resources dynamically in your PHP application.

  • supports SPL autoloader
  • supports include_path
  • provides exception-based failure mechanism
  • provides mechanism for loading plugins based on class prefix and path

Zend_Locale

Zend_Locale is the Framework's answer to the question, "How can the same application be used around the whole world?" This component is the foundation of Zend_Date, Zend_Translate, and others.

  • provides access to CLDR, an international data repository for I18N issues, for all framework classes
  • provides localizing of numbers
  • provides normalizing of dates, times and numbers

Zend_Log

Log data to the console, flat files, or a database. Its no-frills, simple, procedural API reduces the hassle of logging to one line of code and is perfect for cron jobs and error logs.

  • provides a simple object-oriented interface inspired by log4j
  • supports extensible output channels
  • supports extensible output formats

Zend_Mail and Zend_Mime

Almost every Internet application needs to send email. Zend_Mail, assisted by Zend_Mime, creates email messages and sends them.

  • supports attachments
  • supports MIME types
  • supports a variety of mail storage protocols
  • supports multiple mail transport agents
  • supports a variety of authentication mechanisms

Zend_Measure

Using Zend_Measure, you can convert measurements into different units of the same type. They can be added, subtracted, and compared against each other.

  • supports localized handling of measurements and numbers
  • supports converting of measurements and numbers

Zend_Memory

Zend_Memory offers an API for managing data in a limited memory mode. A PHP developer can create a Zend_Memory object to store and access large amounts of data, which would exceed the memory usage limits imposed by some PHP environments.

  • provide transparent mechanism to work with swappable memory blocks
  • support all existing Zend_Cache back-ends as storage providers as well as the 'None' back-end which gives an ability to work in non-limited memory mode through the same API and with minimal overhead

Zend_Pdf

Portable Document Format (PDF) from Adobe is the de facto standard for cross-platform rich documents. Now, PHP applications can create or read PDF documents on the fly, without the need to call utilities from the shell, depend on PHP extensions, or pay licensing fees. Zend_Pdf can even modify existing PDF documents.

  • supports Adobe PDF file format
  • parses PDF structure and provides access to elements
  • creates or modifies PDF documents
  • utilizes memory efficiently

Zend_Registry

The registry is a container for storing objects and values in the application space. By storing an object or value in the registry, the same object or value is always available throughout your application for the lifetime of the request. This mechanism is often an acceptable alternative to using global variables.

  • provides globally accessible storage for objects and values
  • provides iterator, array, and indexed access

Zend_Rest_Client and Zend_Rest_Server

REST Web Services use service-specific XML formats. These ad-hoc standards mean that the manner for accessing a REST web service is different for each service. REST web services typically use URL parameters (GET data) or path information for requesting data and POST data for sending data.

  • provides capabilities to access REST web services
  • provides capabilities to expose APIs as REST services

Zend_Search_Lucene

The Apache Lucene engine is a powerful, feature-rich Java search engine that is flexible about document storage and supports many complex query types. Zend_Search_Lucene is a port of this engine written entirely in PHP 5.

  • allows PHP-powered websites to leverage powerful search capabilities without the need for web services or Java
  • provides binary compatibility with Apache Lucene
  • matches Apache Lucene in performance

Zend_Service: Akismet, Amazon, Audioscrobbler, Delicious, Flickr, Nirvanix, Simpy, StrikeIron and Yahoo!

Web services are important to the PHP developer creating the next generation of mashups and composite applications. Zend Framework provides wrappers for service APIs from major providers to make it as simple as possible to use those web services from your PHP application.

  • fetch web service data from popular providers with just a few lines of code
  • simplified object-oriented API encapsulates the underlying protocols and formats
  • features an ever-growing set of components to accommodate new and relevant services

Zend_Session

Zend_Session helps manage and preserve session data across multiple page requests by the same client.

  • provides an object-oriented interface to access session data
  • provides optional security features to help protect against session hijacking
  • supports namespaced access to the PHP session for interoperability

Zend_Translate

The Zend_Translate component provides Zend Framework with message translation functionality.

  • provides a simple and consistent object-oriented interface to translated message storage
  • supports industry-standard message storage formats such as gettext, TMX, Qt, XLIFF and others
  • provides thread-safe gettext implementation

Zend_Uri

Zend_Uri is a component that aids in manipulating and validating Uniform Resource Identifiers (URIs). Zend_Uri exists primarily to service other components such as Zend_Http_Client but is also useful as a standalone utility.

  • create URIs
  • manipulate URIs
  • validate URIs

Zend_XmlRpc

Zend_XmlRpc makes it easy to communicate with and create XML-RPC services from PHP.

  • mimics PHP's SOAP extension
  • flexible request and response implementation allows for use with non-HTTP services
  • server implementation allows attaching existing classes to quickly expose APIs as XML-RPC services

ZF Reference Guide - now in PDF!

The Zend Framework Reference Guide is now available in PDF format from Zend's high-speed content distribution network. Registration is required.

Documentation Archives

If you're looking for an older version of our reference guide, you'll find it in our download archives.