文本预处理
Zend框架 (Zend Framework)
Zend Framework (ZF) is an open source framework for developing web applications and web services with PHP 5. ZF is an implementation that uses code 100% object oriented. The component structure of ZF is somewhat unique, because each component is built with a low dependency on other components. This loosely coupled architecture allows developers to use components separately. Often it is referred to this type of design as “use-at-will”.
Zend Framework(ZF)是一个开放源代码框架,用于使用PHP 5开发Web应用程序和Web服务。ZF是使用100%面向对象代码的实现。 ZF的组件结构有些独特,因为每个组件的构建对其他组件的依赖性都很小。 这种松散耦合的体系结构允许开发人员单独使用组件。 通常将这种类型的设计称为“随意使用”。
Although they can be used individually, the components of Zend Framework standard library form a powerful and extensible framework for web applications when combined. ZF offers great performance and a robust MVC implementation, a database abstraction easy to use, and a forms component that implements the delivery of HTML forms, validating and filtering so that developers can consolidate all operations using one way simple object-oriented interface. Other components, such as Zend_Auth and Zend_Acl, provide user authentication and authorization different stores stock certificates. There are also components that implement client libraries to easily access the most popular web services. Whatever the needs of your application, you have every chance of finding a Zend Framework component that can be used to dramatically reduce development time, with a completely solid base.
尽管它们可以单独使用,但是Zend Framework标准库的组件组合在一起时,将为Web应用程序形成一个功能强大且可扩展的框架。 ZF提供了出色的性能和强大的MVC实现,易于使用的数据库抽象以及实现HTML表单传递,验证和过滤的表单组件,以便开发人员可以使用一种简单的面向对象的界面来合并所有操作。 其他组件(例如Zend_Auth和Zend_Acl)提供用户身份验证和不同商店库存证书的授权。 还有一些组件可以实现客户端库,以轻松访问最受欢迎的Web服务。 无论您的应用程序需要什么,您都有机会找到一个Zend Framework组件,该组件可用于以完全坚实的基础大大缩短开发时间。
The main project sponsor is Zend Technologies Zend Framework, but many companies have contributed with important features or components for the frame. Companies like Google, Microsoft, and StrikeIron have partnered with Zend to provide web services interfaces and other technologies that wish to make available to developers Zend Framework.
项目的主要赞助商是Zend Technologies Zend Framework,但是许多公司都为框架提供了重要的功能或组件。 诸如Google,Microsoft和StrikeIron之类的公司已与Zend合作,以提供Web服务界面和其他希望提供给开发人员Zend Framework的技术。
Zend Framework is a web application framework, being open source, object oriented, implemented in PHP 5, and licensed as New BSD License. Zend Framework-often referred to as ZF-is developed with the goal of simplifying web development while promoting best practice in the community of PHP developers. The architecture-at-will use the ZF allows developers to reuse components when and where they make sense in their applications without requiring other components beyond minimal dependencies on Zf.
Zend Framework是一个Web应用程序框架,它是开源的,面向对象的,以PHP 5实现,并已获得New BSD License的许可。 Zend Framework(通常称为ZF)的开发旨在简化Web开发,同时在PHP开发人员社区中推广最佳实践。 可以使用ZF的体系结构允许开发人员在应用程序中随时随地重用组件,而无需依赖Zf的最小依赖关系的其他组件。
There is therefore no paradigm or pattern that all Zend Framework users must follow, although ZF supplies components to the design patterns MVC and Table Gateway that are used in most ZF applications. Zend Framework provides individual components for many other common requirements in web application development, including authentication and authorization via access control lists (ACL), application configuration, data caching, filtering / validation of user input for security and integrity of data, internationalization, interfaces to AJAX functionality, composition / mail delivery, indexing and querying in a search format, and all Google Data APIs with many other popular web services. Because of their loosely coupled design, the ZF components can be used in order for the hand of third party PHP web application frameworks.
因此,尽管ZF为大多数ZF应用程序中使用的设计模式MVC和Table Gateway提供组件,但没有所有Zend Framework用户都必须遵循的范式或模式。 Zend Framework为Web应用程序开发中的许多其他常见需求提供了单独的组件,包括通过访问控制列表(ACL)进行身份验证和授权,应用程序配置,数据缓存,用户输入的过滤/验证,以确保数据的安全性和完整性,国际化, AJAX功能,组合/邮件传递,搜索格式的索引和查询,以及所有Google Data API和许多其他流行的Web服务。 由于它们的松散耦合设计,因此可以将ZF组件用于第三方PHP Web应用程序框架。
Zend Framework was conceived in early 2005 while many new frameworks such as Ruby on Rails and Spring Framework, were gaining popularity in the web development community. ZF was first announced publicly in the Zend Conference. At the same time, no framework has been used widely available to the PHP community to completely fill similar web development needs. The designers of the Zend Framework sought to combine features of end-use and rapid application development (RAD) of these new frameworks with the simplicity, openness and practicality of the real world that is highly valued in the PHP community.
Zend Framework于2005年初构想,而许多新框架(如Ruby on Rails和Spring Framework)在Web开发社区中逐渐流行。 采埃孚首次在Zend会议上公开宣布。 同时,PHP社区尚未广泛使用任何框架来完全满足类似的Web开发需求。 Zend框架的设计者试图将这些新框架的最终用途和快速应用程序开发(RAD)功能与PHP社区中高度重视的现实世界的简单性,开放性和实用性相结合。
Typically, usage scenarios specific development are implemented using more generic software components via automatic configuration and / or code generation. The Zend Framework community has opted for the complete development and testing of key components before starting work on simplifying development tasks such as database migration, generation of scaffolding, configuration and project creation.
通常,使用场景特定的开发是通过自动配置和/或代码生成使用更多通用软件组件实现的。 Zend Framework社区在开始着手简化诸如数据库迁移,生成支架,配置和项目创建之类的开发任务之前,已经选择了对关键组件的完整开发和测试。
This practice has been subject to some criticism since some features considered by many as necessary for a general release for modern web application frameworks were Dexi for future releases of Zend Framework. ZF Many users, however, have found such generic software components more reusable and extensible implementation of their applications. Zend Framework also seeks to promote best practices for web development in PHP community, conventions are not as commonly used in ZF as in many other frameworks. Appropriately suggestions are replaced by reasonable standards of configuration that can be overridden by each specific requirement of applying ZF.
这种做法受到了一些批评,因为许多人认为现代Web应用程序框架的一般发行版所必需的某些功能是Zend Framework未来发行版的Dexi。 ZF但是,许多用户发现此类通用软件组件可更重用和扩展其应用程序的实现。 Zend Framework还试图在PHP社区中推广Web开发的最佳实践,ZF中使用的约定不像许多其他框架中那样常用。 适当的建议将由合理的配置标准代替,这些标准可以被应用ZF的每个特定要求所取代。
Zend Framework –许可 (Zend Framework – Licensing)
Zend Framework is licensed under Open Source Initiative (OSI)-approved New BSD License, and all code contributors must sign a Contributor License Agreement (CLA) based on the Apache Software Foundation’s CLA. The licensing policies and contribution have been established to thwart any intellectual property issues for business users ZF.
Zend Framework已获得开放源代码倡议(OSI)批准的新BSD许可证的许可,并且所有代码提供者都必须基于Apache软件基金会的CLA签署贡献者许可协议(CLA)。 已经建立了许可政策和贡献,以阻止业务用户ZF遇到任何知识产权问题。
Zend框架–赞助商和合作伙伴 (Zend Framework – Sponsors and partners)
Zend Technology, co-founded by the core contributors to PHP Andi Gutmans and Zeev Suraski, is the corporate sponsor of the Zend Framework. The technology partners include IBM, Google, Microsoft, and StrikeIron.
Zend Technology由PHP Andi Gutmans和Zeev Suraski的核心贡献者共同创立,是Zend Framework的企业赞助商。 技术合作伙伴包括IBM,Google,Microsoft和StrikeIron。
Zend框架–要求 (Zend Framework – Requirements)
Zend Framework requires PHP 5.1.4 or higher, although the Programmer’s Reference Guide Zend Framework PHP 5.2.4 or higher recommended for performance and security improvements included among these versions of PHP. PHPUnit 3.0 or higher is required to run the test unit shipped with Zend Framework. Many components also require PHP extensions, a complete list of components and their dependencies can be found in the Programmer’s Reference Guide.
Zend Framework需要PHP 5.1.4或更高版本,尽管在这些版本PHP中推荐使用《程序员参考指南Zend Framework PHP 5.2.4或更高版本》以提高性能和安全性。 运行Zend Framework附带的测试单元需要PHPUnit 3.0或更高版本。 许多组件也需要PHP扩展,可以在《程序员参考指南》中找到组件及其依赖关系的完整列表。
Zend Framework –版本 (Zend Framework – Releases)
The Zend Framework releases are versioned with three numbers in the format xyz, where a change in x, y, or z corresponds to the larger and smaller mini releases, respectively. The first General Availability release of ZF was launched on 30/06/2007 as Zend Framework 1.0. The latest release is 1.10.8, which was made available for download on 28/04/2010.
Zend Framework发行版使用xyz格式的三个数字进行版本控制,其中x,y或z的变化分别对应于较大和较小的mini发行版。 ZF的第一个通用可用性版本于2007年6月30日作为Zend Framework 1.0发布。 最新版本是1.10.8,可在2010年4月28日下载。
Zend Framework –功能 (Zend Framework – Features)
- All components are completely PHP 5 object-oriented and has compliance with AND STRICT 所有组件完全都是PHP 5面向对象的,并且符合AND STRICT
- Architecture-to-use comfortable with loose coupling of components and minimum inter-dependencies 架构使用舒适,组件之间松散耦合,相互依赖性最小
- MVC implementation supports layouts and extensible template-based PHP by default 默认情况下,MVC实现支持布局和可扩展的基于模板PHP
- Implementation of Flexible Table Gateway to access data from a relational database into an object-oriented environment 实施灵活表网关以将数据从关系数据库访问到面向对象的环境中
- Support for multiple database systems including MySQL, Oracle, IBM DB2, Microsoft SQL Server, PostgreSQL, SQLite, and Informix Dynamic Server 支持多种数据库系统,包括MySQL,Oracle,IBM DB2,Microsoft SQL Server,PostgreSQL,SQLite和Informix Dynamic Server
- Authentication and authorization based on the ACL using a variety of back-end systems 使用多种后端系统基于ACL的身份验证和授权
- Filter data validation and to strengthen the security of the application 过滤数据验证并加强应用程序的安全性
- Session Management 会话管理
- Component configuration to promote a consistent configuration management across applications and ZF Zend Framework 组件配置可促进跨应用程序和ZF Zend Framework的一致配置管理
- Composition and mail delivery, recovery via mbox, Maildir, POP3 and IMAP4 撰写和邮件传递,通过mbox,Maildir,POP3和IMAP4进行恢复
- Indexing and searching that supports the Lucene index file format 支持Lucene索引文件格式的索引和搜索
- Internationalization and Localization 国际化和本地化
- Creating forms using PHP, or XML configuration files 使用PHP或XML配置文件创建表单
- Identity 2.0 technologies such as OpenID and Microsoft InfoCard Identity 2.0技术,例如OpenID和Microsoft InfoCard
- Multiple formats for web services, inclundo XML-RPC, REST, GData and Google. Web服务的多种格式,包括XML-RPC,REST,GData和Google。
- Flexible caching subsystem with support for many kinds of backends, such as memory or a file system. 灵活的缓存子系统,支持多种后端,例如内存或文件系统。
- Component inspired by simple logging log4j 受简单日志记录log4j启发的组件
- Component native PHP to read, update and creation of PDF documents 组件本机PHP,用于读取,更新和创建PDF文档
- Serializing PHP data structures to JSON and to facilitate the development AJAX 将PHP数据结构序列化为JSON并促进AJAX开发
- API for consuming RSS and Atom feeds 使用RSS和Atom提要的API
- Client libraries for many repositories of web services including Amazon E-Commerce Service, Akismet, del.icio.us, Flickr, StrikeIron, Yahoo, Audioscrobbler, and Simpy. Web服务许多存储库的客户端库,包括Amazon E-Commerce Service,Akismet,del.icio.us,Flickr,StrikeIron,Yahoo,Audioscrobbler和Simpy。
代码,文档和测试模式 (Code, documentation, and test patterns)
Contributions of code to the Zend Framework are subject to a strict code, documentation, and test patterns. All code must meet the standards of coding and unit testing should reach 80% code coverage before the corresponding code can be moved to the brand of release.
对Zend Framework的代码贡献受严格的代码,文档和测试模式的约束。 所有代码都必须符合编码标准,并且单元测试必须达到80%的代码覆盖率,然后才能将相应的代码移至发行品牌。
Study: From Wikipedia, the free encyclopedia. The text is available under the Creative Commons.
研究:来自维基百科,免费的百科全书。 该文本可在“ 知识共享”下找到 。
翻译自: https://www.eukhost.com/blog/webhosting/hypertext-preprocessor-php-part-3/
文本预处理