Which is the best framework for PHP?

i m looking for best PHP framework…

Without knowing your requirements and PHP knowledge I can only hazard a guess and recommend CodeIgniter :slight_smile:

CodeIngniter is dead long time ago already.
The most newbie-frinedly out of modern frameworks is Laravel.

However, you have to realize that no framework will make you a rich man or even a good programmer.

CI is alive, well, has security updates and soon to be updated with all the latest PHP 7 innovations.

http://forum.codeigniter.com/thread-65544.html

CI3 is drastically outdated, even its offsprings like Kohana or Fuel are dead as well.
CI4 is not in a production state yet, and even when it will be, it’ll be a brand new framework with all the drawbacks of a new product.
Which make both a questionable recommendation for a novice.

1 Like

I had a large project that I had to do, and was going to build it in either Laravel or CodeIgniter. I didn’t have time to get up to speed with Laravel (although I haven’t given up on it) so I decided to go with CodeIgniter. It was easy to learn, did the job for me and I found the documentation and community forums very helpful.

If it does the job for you, then I figure you should go ahead and use it. All frameworks and scripting languages have their issues and drawbacks, and you just learn to deal with them. Remember that often recommendations are just a person’s opinion, not 100% fact. You have to try these things out for yourself.

1 Like

I agree with colshrapnel, if you are new to coding, Laravel is a great framework to get you started however as you move forward I would try not to rely on frameworks too much as they can bulk out your code and cause you more problems than what they are worth on a complex project.

What is your level of experience as a PHP developer?

Scott

1 Like

I agree with @WebMachine

As I mentioned before in post #2 Without knowing your requirements and PHP knowledge I can only hazard a guess. Reminds me of learning to ride, passing tests and subsequent motorcycles…

Mine because I’ve built it and I know it inside out :P. Actually I’m not kidding, I think for me it was a great choice to decide to build my own. I have learnt so much doing so and I now have a much clearer idea of the sort of problems/solutions frameworks have to deal with. I’m building my own tool to be able to put websites together fairly quickly. It will take a lot of time but I consider this time well spent. Knowing the code inside out helps you not to freak out and come up with solutions fairly quickly. Having said that I do not have a lot of experience with other PHP frameworks. I think I would give a go to Symphony2, seems very powerful

The cool thing about Symfony is they are moving more and more away from any kind of monolithic framework thinking and moving towards a more component library like type of setup, which helps a dev build a framework of his or her choice, in a way. And hopefully, with more interoperability between libraries, which I believe is the next generation of PHP, it will be even easier to build what anyone chooses as their own custom framework. In a way, that is sort of how Laravel got started. It was built off of Symfony core components and grew from there.

Scott

1 Like

I agree, but still Symfony is more for a professional-like, and your statement is just another proof for that. when you know your tools, you can pick the right ones to create your own framework off the Symfony. But looking for your first framework you’d likely wish a pre-made bundle, and a newbie friendly one. And Laravel is far better here. I worked with both.

Just compare Doctrine ORM bundled with Symfony by default with Eloquent in Laravel. Doctrine is hard to learn. While Eloquent’s models are intuitive and way simpler. And the same with almost every component.

Therefore, for if you take into account the context in which this question asked (a pro wouldn’t ask for the “best” - they know already there is none), then Laravel is a very good choice, with a few competitors.

@John_Betong your arguments are subjective while mine are strictly objective. Binding your career to a severely outdated software is apparently not the best decision one could take. While working with a beta product without stable documentation or newbie-friendly support will make experience quite hard. I appreciate your feelings but I hope you can admit the facts.

Agreed. My post wasn’t a recommendation for the OP to go with Symfony. Just a general statement.

Scott

Laravel, Symfony are the best PHP frameworks that i had used.

Has someone experience with Yii2framework ? I am thinging to give a try to YII2 when I can having experience with Yii1.

Just to put the record straight.

CodeIgniter Version 3.0.0 - Release Date: March 30, 2015

Since then there has been numerous security updates and the latest stable Version 3.1.0 - Release Date: July 26, 2016

The CodeIgniter4.0.0-dev has reached Milestone 1 - Release Date June 25 2016 and its repository has been transferred to the “bcit-ci” organization.

As far as I am concerned CodeIgniter is adequate for my needs and I especially like a PHP Framework that is less than 3 Mb including excellent documentation. Updating requires a single line in the index.php.

Laravel is no mean task to upgrade and contains a vast amount of functionality which I do not require. Why should I use a slow PHP Framework?

As far as “Binding my career to a severely outdated software” I prefer not to blindly follow the masses and prefer the KISS principle :slight_smile:

3 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.