什么是PHP框架? [英] What is a PHP Framework?

查看:72
本文介绍了什么是PHP框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前从未听说过,而且我已经使用PHP进行编码已有相当长的时间了.我问这个问题实际上有点愚蠢,但是,什么是PHP框架?对我有什么帮助?以及我该如何使用?

Ive never heard of this before, and I have been coding in PHP for quite some time. I actually feel kind of stupid asking this question but, what is a PHP Framework? How can it help me? and how do I use one?

推荐答案

框架通常是类和函数的集合,可让您在开发中更快地实现目标.诸如Symfony,CakePHP和Zend之类的PHP框架都具有一系列实用程序类,工具和结构化元素,可让您避免重新发明轮子.

A framework in general is a collection of classes and functions that let you accomplish your goal faster in development. PHP Frameworks such as Symfony, CakePHP, and Zend all have a series of utility classes, tools, and structured elements that let you avoid reinventing the wheel.

Zend Framework与许多其他功能一样,都具有强大的MVC引擎,可让您避免自己重新构建该功能.

Zend Framework, like many, has a strong MVC engine that let's you avoid rebuilding that functionality yourself.

要开始使用框架,请下载框架本身.对于Zend,我将其下载并解压缩到lib/,我很高兴.从那里,您只需阅读有关特定框架的文档,以了解如何实际使用它们提供的工具.使用什么功能,在哪里使用什么类,等等.

To start using a framework, you download the framework itself. In the case of Zend, I download it, unpack it to lib/, and I'm good to go. From there, you just read the documentation on that particular framework to learn how to actually utilize the tools they provide. What functions to use, what classes where, and so on.

这篇关于什么是PHP框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆