PHP 框架与内容管理系统

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4511817/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 13:15:23  来源:igfitidea点击:

PHP Framework vs Content Management System

phpframeworkscontent-management-system

提问by HK1

How would you explain the difference between a PHP Framework and a CMS (like Wordpress) to someone who is very technically savvy, mostly on hardware/networking, but does little or no programming?

您如何向精通技术(主要是硬件/网络)但很少或没有编程的人解释 PHP 框架和 CMS(如 Wordpress)之间的区别?

As an amateur-to-intermediate programmer myself, I could try to answer these questions but I'd value the input of those who are more experienced with frameworks and CMS.

作为一名业余到中级程序员,我可以尝试回答这些问题,但我会重视那些对框架和 CMS 更有经验的人的意见。

采纳答案by Sarfraz

You can check out this slide to see the difference:

您可以查看此幻灯片以了解不同之处:

To put it in simple words:

用简单的话来说:

A CMS provides you with a back-end(with a host of plugins and components) like Joomla, Drupal, WordPress, etc that allow you to manage front-end. Where as a frameworks doesn't.

一个CMS提供了一个后端(与插件和组件的主机)如Joomla,Drupal的,WordPress的,等等,让你管理的前端。框架没有的地方

A framework such as CodeIgniter, Kohana, CakePHP, Symfony, etc: provides you with ready-made classes and libraries BUT you have to use them and build your own siteie: Front-end and Back-end.

CodeIgniter、Kohana、CakePHP、Symfony 等框架:为您提供现成的类和库,但您必须使用它们并构建自己的站点,即:前端和后端。

回答by Craige

You can build a CMS with a framework, but you cannot build a framework with a CMS.

你可以用框架来构建CMS,但你不能用CMS来构建框架。

A CMS is just that - a Content Management System.

CMS 就是这样 - 一个内容管理系统。

A framework is a collection of libraries to build an application.

框架是用于构建应用程序的库的集合。

回答by Tyler Eaves

Framework = Library CMS = System

框架 = 图书馆 CMS = 系统

A framework doesn't "give" you anything, it's just a skeleton. A cms will give you a functional site, and it's just a matter of themeing and adding content.

框架不会“给”你任何东西,它只是一个骨架。一个 cms 会给你一个功能性的网站,这只是主题和添加内容的问题。

回答by simshaun

A framework is just that.. something that you can combine pieces of to build an application.

框架就是.. 可以组合多个部分来构建应用程序的东西。

A CMS is an application, that may or may not have been built on top of a framework.

CMS 是一个应用程序,它可能构建在框架之上,也可能没有构建。

回答by sahil chadha

frameworks create very good presentable web applications,whereas cms could be fast but can't create as presentable quality as frameworks can.

框架创建了非常好的可展示的 Web 应用程序,而 cms 可能很快,但不能像框架那样创建可展示的质量。

回答by John Skoumbourdis

I think this article:

我认为这篇文章:

A Framework or a CMS? What is better to choose?

框架还是CMS?选择什么比较好?

explains the difference between a CMS and a framework. Furthermore you can see 3 examples of where to use a CMS or framework and why. Also if you read the comments below the article, you can see pretty interesting discussions about CMS and Frameworks as well.

解释了 CMS 和框架之间的区别。此外,您可以看到 3 个示例,说明在何处使用 CMS 或框架以及原因。此外,如果您阅读文章下方的评论,您还可以看到关于 CMS 和框架的非常有趣的讨论。

回答by Mohamed Tounsi

I believe if you are building a simple or generic website use a CMS, but for more complicated projects (or web appliactions) with a substantial budget a frameworkis better suited.

我相信,如果您正在构建一个简单或通用的网站,请使用 CMS,但对于具有大量预算的复杂的项目(或 Web 应用程序),框架更适合。

enter image description hereithands.com

在此处输入图片说明ithands.com

回答by pcrikos

I've been working for years as a JOOMLAdeveloper. You can do anything with all the most known content management systems(CMS).

我已经作为JOOMLA开发人员工作了多年。您可以使用所有最知名的内容管理系统 ( CMS)做任何事情。

MVC is the pattern there too. You can develop your own components, if you need something special.

MVC 也是那里的模式。如果您需要一些特别的东西,您可以开发自己的组件。

Furthermore, you do not need to focus on developing common tasks, such as user management, Facebook co-operation, e.t.c.

此外,您无需专注于开发常见任务,例如用户管理、Facebook 合作等

Why reinvent the wheel? Anything that has been build before, can be bought or even downloaded for free from the repositories. There are so many components out there.

为什么要重新发明轮子?以前构建的任何东西都可以从存储库中免费购买甚至下载。那里有很多组件。

As for appearance, there are 1000s ready made templates that you can get and speed up your development and lower your cost.

至于外观,有1000个现成的模板,您可以获取并加快您的开发并降低您的成本。