php - 在没有实际框架的情况下使用 Zend Framework 组件?

标签 php validation zend-framework

我想知道是否有人知道如何在不必实际使用框架的情况下使用 Zend 框架的某些组件。例如,我想使用他们的 Zend_Validate组件,但不需要框架的开销,因为它是一个很小的单页脚本。

这是否可以轻松完成,如果可以,是否有关于如何完成它的指南/教程?

最佳答案

Zend 框架组件被有意设计为与框架本身松耦合。

The component structure of Zend Framework is somewhat unique; each component is designed with few dependencies on other components. This loosely coupled architecture allows developers to use components individually. We often call this a "use-at-will" design. [from here]

Here's a tool for pulling out specific components and their dependencies在您的应用程序中使用。

关于php - 在没有实际框架的情况下使用 Zend Framework 组件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1402989/

相关文章:

linux - Zend框架主页

java - TDD 最佳实践 - Java 对象验证和干净代码

asp.net-mvc-3 - 验证错误消息未显示 MVC4

java - JSF 2 - f :selectItems with a Date keyed Map

php - Zend_Mail 发送的电子邮件被视为垃圾邮件

php - 为什么我会收到这些 Zend_Application_Resources 的循环依赖异常?

php - RegEx - 如何在文件扩展名前插入字符串

php - 如何查找日期是否适合 PHP 或 MySQL 中的间隔?

php - 只有 true 语句的条件运算符

php - 上传批量图片时可以防止服务器超时吗?