Reputation: 2885
What is the difference between a PHP framework and a CMS? It just unclear to me what the difference is.
Thanks!
Upvotes: 0
Views: 1192
Reputation: 11
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.
Upvotes: 0
Reputation: 42380
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.
Upvotes: 0
Reputation: 7368
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):
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!
Upvotes: 5
Reputation: 13417
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).
Upvotes: 10