开发者

PHP framework and CMS

What is the differe开发者_运维技巧nce between a PHP framework and a CMS? It just unclear to me what the difference is.

Thanks!


CMS = Content Management System.

Framework = Collection of tools, source code, methodology and idioms.

You can build a CMS with a PHP Framework, but you can't build a PHP Framework with a CMS. Also, a CMS doesn't have to be built in PHP, but a PHP framework will be (most often).


A framework helps you create applications by providing solutions for common tasks, but a cms is an application. You can use a framework to create a cms.

There are also a few cms'es claimin to also be frameworks (or have framework capabilities):

  • Modx
  • Drupal

If you haved worked with one of the typical frameworks (CodeIgniter, CakePhp, and others), there are for sure quite different to work with a cms like Modx or Drupal, but they are flexible cms'es that are fearily easy to extend with new features!


A Framework is something designed to help programmers build applications, and possibly CMSes. examples are CakePHP, CodeIgniter, and Kohana.

a CMS can be used by someone with no real programming expierience. examples are WordPress, Joomla, and Drupal.


A content management system is used to manage content. The content can be differentiated according to types, like custom post types for WordPress. You can create a CMS using a framework or code from scratch.

A framework can be thought of as collection of packages to speed up development (compared to coding from scratch).

Now, you mentioned that you want to make your own framework. You can create a framework from scratch, or use open source means, like Composer or Symfony components, to build your framework. Just remember that as a developer, you are responsible for making sure that any open source components you include in your system has been reviewed for security. You can do line-by-line review, which can be difficult (e.g. 5,000+ files on a lumen installation), or any other means based on established protocols of your organization or laws.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜