{"id":2313,"date":"2014-12-25T12:37:04","date_gmt":"2014-12-25T07:07:04","guid":{"rendered":"http:\/\/cmscomputer.in\/blog\/?p=2313"},"modified":"2024-03-05T16:36:03","modified_gmt":"2024-03-05T11:06:03","slug":"core-php-or-php-framework-for-web-development","status":"publish","type":"post","link":"https:\/\/www.cmscomputer.in\/blog\/core-php-or-php-framework-for-web-development\/","title":{"rendered":"Core PHP or PHP Framework, Which one to choose for web development?"},"content":{"rendered":"<p>In this article, I will explain, why should we\u00a0prefer\u00a0PHP Frameworks over Core PHP for our projects. A website built from scratch using a PHP framework is easier to maintain and control on a long term. More specifically, a framework might do a particular task more quickly than code you wrote yourself would.<\/p>\n<h6><strong>The comparison between Core PHP and PHP Framework can be related to Mathematics.<\/p>\n<p><\/strong><\/h6>\n<ul>\n<li>To solve a complicated problem in scientific mathematics, you can either take a paper to work out, or you can use a scientific calculator to solve it.<\/li>\n<li>Working out mathematics in a paper is like coding in Core PHP, tapping a scientific calculator is like coding in Framework.<\/li>\n<\/ul>\n<p>Popular Frameworks like CakePHP (I wouldn\u2019t recommend for large projects), Symfony, YII, Zend has a lot of resources put into making them as efficient and capable as possible.<\/p>\n<p><strong>Pros:<\/strong><\/p>\n<ul>\n<li>Ready to Use.<\/li>\n<li>Provides functionality you might not know how to write yourself or \u2018basics\u2019 that most projects need take a long time to write.<\/li>\n<li>You will get community support to improve your code or fix bugs.<\/li>\n<li>Modification Projects: If the client come up with new innovative requirements, if the project was done with core php, then you will have to say no for 70% of his requirements. But, if you have used framework, very easily you can give the updated project back to the client.<\/li>\n<\/ul>\n<p><strong>Cons:<\/strong><\/p>\n<ul>\n<li>Learning curve: You need to know all the functions, classes, and methods provided by the framework. Good frameworks are complex, and learning how to use them can become a full-time job (some much more than others &#8211; many coders will &#8220;lock&#8221; themselves into a particular framework because of this &#8211; i.e., start thinking of PHP in terms of &#8220;Zend&#8221; or &#8220;Cake&#8221; only). Also writing Core PHP inside Framework has become common nowadays, it\u2019s an insult to Frameworks.<\/li>\n<li>Overkill: for most projects taken on by a single developer, especially a beginner, frameworks might be significantly more work than is actually needed for the task.<\/li>\n<\/ul>\n<p>Finally I would like to suggest developers(especially for beginners and intermediate developers) and clients to prefer frameworks for their web applications. While picking up a new php framework make sure that, it has good documentation, community support and meets up your requirement.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, I will explain, why should we\u00a0prefer\u00a0PHP Frameworks over Core PHP for our projects. A website built from scratch using a PHP framework is easier to maintain and control on a long term. More specifically, a framework might do a particular task more quickly than code you wrote<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_joinchat":[],"footnotes":""},"categories":[115,7],"tags":[9,8,10],"class_list":["post-2313","post","type-post","status-publish","format-standard","hentry","category-it-training","category-web-technologies","tag-core-php","tag-php","tag-php-frameworks"],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.cmscomputer.in\/blog\/wp-json\/wp\/v2\/posts\/2313"}],"collection":[{"href":"https:\/\/www.cmscomputer.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cmscomputer.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cmscomputer.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cmscomputer.in\/blog\/wp-json\/wp\/v2\/comments?post=2313"}],"version-history":[{"count":7,"href":"https:\/\/www.cmscomputer.in\/blog\/wp-json\/wp\/v2\/posts\/2313\/revisions"}],"predecessor-version":[{"id":2320,"href":"https:\/\/www.cmscomputer.in\/blog\/wp-json\/wp\/v2\/posts\/2313\/revisions\/2320"}],"wp:attachment":[{"href":"https:\/\/www.cmscomputer.in\/blog\/wp-json\/wp\/v2\/media?parent=2313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cmscomputer.in\/blog\/wp-json\/wp\/v2\/categories?post=2313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cmscomputer.in\/blog\/wp-json\/wp\/v2\/tags?post=2313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}