系统需求
这部分描述了 Zend Framework 对系统的需求。
PHP 版本需求
Zend Framework 需要 PHP 5.2.11 或更高版本。例如 Countable
这样一些 SPL 接口在 PHP 之前的版本中没有被正式使用。
Zend Framework 提供了大量自动化测试,可以使用 PHPUnit 3.4.15 或更高版本运行。
这个版本的 PHPUnit 同样也需要 PHP 5.2.11 或更高版本。
虽然 Zend Framework 可以在上面提到的 PHP 版本下正确工作,但是强烈建议使用 PHP 5.2.11 或更高版本。
新版本的 PHP 有许多重要的安全更新和性能提升。
PHP 扩展
下面列出了所有 PHP 内建支持的扩展,以及它们在 Zend Framework 中如何应用。
这个可以帮助了解哪个扩展需要在应用中使用。
不是每一个被 Zend Framework 使用的扩展都要应用在程序中。
使用方式“依赖”表示当扩展不可用时,组件或者类也不可使用。
使用方式“可选”表示当扩展不可用时,组件或者类自动使用代替方案。
Zend Framework 使用的 PHP 扩展
扩展
使用方式
使用扩展的 Zend Framework 组件
apc
依赖
Zend_Cache_Backend_Apc
bcmath
可选
Zend_Locale_Math
bitset
可选
Zend_Search_Lucene
bz2
--
calendar
--
com_dotnet
--
ctype
依赖
Zend_Auth_Adapter_Http,
Zend_Gdata_App,
Zend_Http_Client,
Zend_Pdf,
Zend_Rest_Client,
Zend_Rest_Server,
Zend_Search_Lucene,
Zend_Uri,
Zend_Validate
curl
依赖
Zend_Http_Client_Adapter_Curl
date
---
dba
--
dbase
--
dom
依赖
Zend_Feed,
Zend_Gdata,
Zend_Log_Formatter_Xml,
Zend_Rest_Server,
Zend_Search_Lucene,
Zend_Service_Amazon,
Zend_Service_Delicious,
Zend_Service_Flickr,
Zend_Service_Yahoo,
Zend_XmlRpc
exif
--
fbsql
--
fdf
--
filter
--
ftp
--
gd
依赖
Zend_Pdf
gettext
--
gmp
--
hash
依赖
Zend_Auth_Adapter_Http
ibm_db2
依赖
Zend_Db_Adapter_Db2
iconv
依赖
Zend_Locale_Format,
Zend_Mime_Decode,
Zend_Pdf,
Zend_Search_Lucene,
Zend_Service_Audioscrobbler,
Zend_Service_Flickr,
Zend_XmlRpc_Client
imap
--
informix
--
interbase
依赖
Zend_Db_Adapter_Firebird
json
可选
Zend_Json
ldap
--
libxml
依赖
DOM,
SimpleXML,
XSLT
mbstring
依赖
Zend_Feed
mcrypt
--
memcache
依赖
Zend_Cache_Backend_Memcached
mhash
--
mime_magic
依赖
Zend_Http_Client
ming
--
msql
--
mssql
--
mysql
--
mysqli
依赖
Zend_Db_Adapter_Mysqli
ncurses
--
oci8
依赖
Zend_Db_Adapter_Oracle
odbc
--
openssl
--
pcntl
--
pcre
依赖
Virtually all components
pdo
依赖
All PDO database adapters
pdo_dblib
--
pdo_firebird
--
pdo_mssql
依赖
Zend_Db_Adapter_Pdo_Mssql
pdo_mysql
依赖
Zend_Db_Adapter_Pdo_Mysql
pdo_oci
依赖
Zend_Db_Adapter_Pdo_Oci
pdo_pgsql
依赖
Zend_Db_Adapter_Pdo_Pgsql
pdo_sqlite
依赖
Zend_Db_Adapter_Pdo_Sqlite
pgsql
---
posix
可选
Zend_Mail
pspell
---
readline
---
recode
---
Reflection
依赖
Zend_Controller,
Zend_Filter,
Zend_Filter_Input,
Zend_Json,
Zend_Log,
Zend_Rest_Server,
Zend_Server_Reflection,
Zend_Validate,
Zend_View,
Zend_XmlRpc_Server
session
依赖
Zend_Controller_Action_Helper_Redirector,
Zend_Session
shmop
---
SimpleXML
依赖
Zend_Config_Xml,
Zend_Feed,
Zend_Rest_Client,
Zend_Service_Audioscrobbler,
Zend_XmlRpc
soap
依赖
Zend_Service_StrikeIron
sockets
---
SPL
依赖
Virtually all components
SQLite
依赖
Zend_Cache_Backend_Sqlite
standard
依赖
Virtually all components
sybase
---
sysvmsg
---
sysvsem
---
sysvshm
---
tidy
---
tokenizer
---
wddx
---
xml
依赖
Zend_Translate_Adapter_Qt,
Zend_Translate_Adapter_Tmx,
Zend_Translate_Adapter_Xliff
XMLReader
---
xmlrpc
---
XMLWriter
---
xsl
---
zip
---
zlib
依赖
Zend_Pdf,
Memcache
Zend Framework 组件
下面的表格列出了所有可用的 Zend Framework 组件,以及其所需的 PHP 扩展。这可以帮助了解哪些扩展对于应用来说是必须的。并不是每个应用都需要所有 Zend Framework 使用到的扩展。
Zend Framework 组件以及其使用到的 PHP 扩展
Zend Framework 组件
PHP 扩展 (子类 / 使用方式)
所有组件
pcre
( 依赖 )
SPL
( 依赖 )
standard
( 依赖 )
Zend_Acl
---
Zend_Auth
ctype
( Zend_Auth_Adapter_Http / 依赖 )
hash
( Zend_Auth_Adapter_Http / 依赖 )
Zend_Cache
apc
( Zend_Cache_Backend_Apc / 依赖 )
memcache
( Zend_Cache_Backend_Memcache / 依赖 )
sqlite
( Zend_Cache_Backend_Sqlite / 依赖 )
zlib
( Zend_Cache_Backend_Zlib / 依赖 )
Zend_Config
libxml
( Zend_Config_Xml / 依赖 )
SimpleXML
( Zend_Config_Xml / 依赖 )
Zend_Console_Getopt
---
Zend_Controller
Reflection
( 依赖 )
session
( Zend_Controller_Action_Helper_Redirector / 依赖 )
Zend_Date
---
Zend_Db
ibm_db2
( Zend_Db_Adapter_Db2 / 依赖 )
mysqli
( Zend_Db_Adapter_Mysqli / 依赖 )
oci8
( Zend_Db_Adapter_Oracle / 依赖 )
pdo
( All PDO Adapters / 依赖 )
pdo_mssql
( Zend_Db_Adapter_Pdo_Mssql / 依赖 )
pdo_mysql
( Zend_Db_Adapter_Pdo_Mysql / 依赖 )
pdo_oci
( Zend_Db_Adapter_Pdo_Oci / 依赖 )
pdo_pgsql
( Zend_Db_Adapter_Pdo_Pgsql / 依赖 )
pdo_sqlite
( Zend_Db_Adapter_Pdo_Sqlite / 依赖 )
Zend_Debug
---
Zend_Exception
---
Zend_Feed
dom
( 依赖 )
libxml
( 依赖 )
mbstring
( 依赖 )
SimpleXML
( 依赖 )
Zend_Filter
Reflection
( 依赖 )
Zend_Filter_Input
Reflection
( 依赖 )
Zend_Gdata
ctype
( Zend_Gdata_App / 依赖 )
dom
( 依赖 )
libxml
( 依赖 )
Zend_Http
ctype
( Zend_Http_Client / 依赖 )
curl
( Zend_Http_Client_Adapter_Curl / 依赖 )
mime_magic
( Zend_Http_Client / 依赖 )
Zend_Json
json
( 可选 )
Reflection
( 依赖 )
Zend_Loader
---
Zend_Locale
bcmath
( Zend_Locale_Math / 可选 )
iconv
( Zend_Locale_Format / 依赖 )
Zend_Log
dom
( Zend_Log_Formatter_Xml / 依赖 )
libxml
( Zend_Log_Formatter_Xml / 依赖 )
Reflection
( 依赖 )
Zend_Mail
posix
( 可选 )
Zend_Measure
---
Zend_Memory
---
Zend_Mime
iconv
( Zend_Mime_Decode / 依赖 )
Zend_Pdf
ctype
( 依赖 )
gd
( 依赖 )
iconv
( 依赖 )
zlib
( 依赖 )
Zend_Registry
---
Zend_Request
---
Zend_Rest
ctype
( Zend_Rest_Client / 依赖 )
( Zend_Rest_Server / 依赖 )
dom
( Zend_Rest_Server / 依赖 )
libxml
( Zend_Rest_Client / 依赖 )
( Zend_Rest_Server / 依赖 )
Reflection
( Zend_Rest_Server / 依赖 )
SimpleXML
( Zend_Rest_Client / 依赖 )
Zend_Search_Lucene
ctype
( 依赖 )
bitset
( 可选 )
dom
( 依赖 )
iconv
( 依赖 )
libxml
( 依赖 )
Zend_Server_Reflection
Reflection
( 依赖 )
Zend_Service_Akismet
---
Zend_Service_Amazon
dom
( 依赖 )
libxml
( 依赖 )
Zend_Service_Audioscrobbler
iconv
( 依赖 )
libxml
( 依赖 )
SimpleXML
( 依赖 )
Zend_Service_Delicious
dom
( 依赖 )
libxml
( 依赖 )
Zend_Service_Flickr
dom
( 依赖 )
iconv
( 依赖 )
libxml
( 依赖 )
Zend_Service_StrikeIron
soap
( 依赖 )
Zend_Service_Yahoo
dom
( 依赖 )
libxml
( 依赖 )
Zend_Session
session
( 依赖 )
Zend_Translate
xml
( Zend_Translate_Adapter_Qt / 依赖 )
( Zend_Translate_Adapter_Tmx / 依赖 )
( Zend_Translate_Adapter_Xliff / 依赖 )
Zend_Uri
ctype
( 依赖 )
Zend_Validate
ctype
( 依赖 )
Reflection
( 依赖 )
Zend_Version
---
Zend_View
Reflection
( 依赖 )
Zend_XmlRpc
dom
( 依赖 )
iconv
( Zend_XmlRpc_Client / 依赖 )
libxml
( 依赖 )
Reflection
( Zend_XmlRpc_Server / 依赖 )
SimpleXML
( 依赖 )