أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
Assalamualaikum. Like almost everyone said, you need to know core PHP. Without knowing PHP you wouldn't be able to use a framework anyways. So I think your question meant whether it is better to use a PHP framework or not. There are many factors to take into account what you mean by "better". By better you can mean handling more requests, less overhead, higher maintainability, less learning curve, etc.
From experience and all the pros and cons of a framework. I strongly recommend going the framework way. But almost all frameworks have so much overhead because of bad design and baggage. I suggest that you implement your project using the MVC architecture rather than using an out of the box framework. The benefits of it would be that you will learn the basics, almost all frameworks use the MVC pattern or some variant of it and wont encounter the junk that is included with most frameworks that you will almost never use.
If you're still unsure I suggest just go ahead without a framework or what you know best. As your project grows, there will come a time when you will have difficulty maintaining it. Then you would appreciate what the MVC pattern does for you. And you could reimplement your code using MVC.
Performance wise you can have code using the MVC architecture as fast as pure PHP and as lean. By using the MVC architecture you gain maintainability which most frameworks use for that reason . If you work with other people, a decent dev can come up to speed real quick.
Check this link out, it will teach you how to architect the code you write using the MVC pattern or give you an idea. http://www.sitepoint.com/the-mvc-pattern-and-php-1/
PHP is the world’s most popular scripting language for many different reasons – flexibility, ease-of-use, among others – but often times coding in PHP, or any language for that matter, can get rather monotonous and repetitive. That’s where a PHP framework can help.
PHP frameworks streamline the the development of web applications written in PHP by providing a basic structure for which to build the web applications. In other words, PHP frameworks help to promote rapid application development (RAD), which saves you time, helps build more stable applications, and reduces the amount of repetitive coding for developers.
Some Popular frameworks are
Laravel.
CodeIgniter.
CakePHP.
Symfony.
Zend Framework2.
Phalcon.
Yii.
Aura.
So if you are going to learn PHP i recommend you to first learn the basics of this language from reading online tutorials or Books. or maybe go to any academy.. and then start with one of the following framework.
CodeIgniter.
CakePHP.
while you can go with other frameworks too but these two frameworks are simple to use and will help you learn the language more.
As my opinion, core PHP must be known firstly. Without knowing PHP you would not be able to use a framework anyways.PHP is the world's most popular scripting language for many different reasons - flexibilty,ease-of-use,etc.
PHP frameworks streamline the development of web applications written in PHP by providing a basic structure for which to build the web applications.
In my point of view, both has advantages and disadvances.
CorePHP
- will open your mind and clear your logic to understand and developer wonderful things.
- will help you to learn the origin of projects.
- will help you to create your own opensource product like wordpress and many others.
- will help you to learn any framework after6 -1 years of working experience.
Framework:
- Everyone knows what are benefits of frameworks.
- Quick and Fast development
- A number of helpers and libraries are available.
- Strong Security
There are many but I just listed few of them
hi ,
Using Core PHP or frameworks depends on the size of your application and your experience on php .
for new php users using frameworks will help building good and large application with out doing a lot of work .
You should learn core php, but for professional work u should adopt any framework.
Code igniter and laravel are great frame work for professional working
using framworks have alot of benefits like ---> more security, fast development, .... etc.
but any way you need to know core php before using framworkes.
without knowing core php you wouldn't be able to use a frameworks 100%
i preferd codeignater its easy and more secure
Core-PHP or Pure-PHP can help you sharpen your coding skills and understanding what is happening under the hood at the beginning of your learning. But in a real job, you usually need to deal with a framework, Laravel for example, which helps you structure your code the professional way making use of OOP and advanced programming concepts, and prevent you from reinventing the wheel.
Core-PHP is very basic of PHP Programming language to develop the Dynamic Pages. There are no any extra libraries at the backend but Yes, core-PHP has very rich set of functionalities.On the other hand the frameworks provides provides consistency in the code and are big time savers when the project needs to be handled by several developers at the same time. Also Framework rarely allows you to write bad code which ensures less time in debugging later and helps you to finish a project faster. Integrating your entire module becomes very easy as you do not have to separately understand each developer’s code. Frameworks actually ensures you to separate the logic from the views by using the MVC models. This is a great practice and helps keep the code clean and makes it easy for modifications.As per me the frameworks are better.
Frameworks make you do more works with less time