Pro PHP- Patterns, Frameworks, Testing and More

(vip2019) #1
215

■ ■ ■


CHAPTER 15


Introduction to the


Zend Framework


The Zend Framework is the result of a massive community effort to develop a standardized
MVC framework for PHP. It is a truly open source project and is licensed under a BSD license,
ensuring that everyone has the right to use it appropriately.
The Zend Framework follows the MVC architecture, but is far more robust and developed
in its implementation. It provides facilities for most web development tasks and is extremely
flexible in its operation.
This chapter introduces the Zend Framework and presents one method for development
with the framework. This is by no means the only way, as the whole point of the Zend Frame-
work is to create a flexible development environment that works for a wide range of developers.

Setting Up the Zend Framework


Getting started with the Zend Framework is fairly straightforward. You’ll need to download and
install it, and then configure your web server environment for the framework.

Installing the Zend Framework


Begin by visiting http://framework.zend.com and downloading the latest stable release. At the
time of writing, the latest version is 1.0.3.

> wget http://framework.zend.com/releases/ZendFramework-1.0.3/ ➥
ZendFramework-1.0.3.tar.gz

■Tip You can download the Zend Framework directly to your server by copying the URL link from the web
page and pasting it into the wget command.

McArthur_819-9C15.fm Page 215 Thursday, February 28, 2008 7:44 AM

Free download pdf