r/PHPhelp • u/Nervous-Payment6584 • Nov 08 '25
Which PHP frameworks should I use?
I know there are many frameworks, like Laravel, Symfony, and Slim, but which ones are better for finding a job? As far as I know, Symfony is more difficult compared to Laravel. Are there any other frameworks I should consider?
21
Upvotes
18
u/tom_earhart Nov 08 '25
Symfony will teach you the fundamentals of the language and best practices way more than Laravel. That is why it is considered "hard", there is less magic.
16
u/TemporarySun314 Nov 08 '25
Symfony or Laravel. Slim is not much more than just a router, which is fine for small things, but for full-scale applications Laravel or Symfony will be much more useful than Slim...
Symfony basically forces you to do things in the "right way" (in the sense that it enforces best practices and good architecture) and requires to you be quite explicit everyway. Laravel offers a lot of global helper functions, which allows you to hide away things like dependency injection. That makes things easier, especially as a beginner, which is not used to strict dependency injection and separation of concerns, but i introduces things that would be considered code smells by the pure doctrine of software architecture...
But in the end both Symfony and Laravel offer good base to develop applications, and it should not be that difficult to switch between them if you know one framework...
6
u/equilni Nov 08 '25
Know the language. Work with each framework and be flexible to switch between them. A job you get may not even use a framework.
Look at your job market, what are they looking for? Here's a random job posting in my area with multiple framework requests:
And another, no framework noted:
5
u/berkut1 Nov 08 '25
Learn symfony, cause 99% of php frameworks use symfony packages.
11
u/martinbean Nov 08 '25
Learn languages, not libraries.
2
u/gulivertx Nov 08 '25
Personally never tried Laravel but use Symfony from the version 3 and I will not change it because it’s always feet all my needs. It’s very power full and found very easy in comparison either the version anterior of 3. I had to work on old projects with version 2 and it was a pain… The documentation is also very great. I really recommend it.
2
u/JCadaval Nov 08 '25
I prefer Laravel but Symfony is great too
2
u/Cyberhunter80s Nov 08 '25
Honestly, you should make a deep search on the most found stacks in the place you are looking for jobs. Curate them, compare, contrast, pick the weapon start right away!
One thing, remember after all it's PHP underneath. If you don't know basics to intermediate of PHP, you will be replaceable in no time. Give yourself a friendly reminder once in a while.
Anyway, plan it out in actionable steps and let's go!
Good luck man! 🚀
2
u/Condition17 Nov 08 '25
I use Codeigniter 4 for my startup and clients.
2
u/beardedNoobz Nov 08 '25
Finding Job in EU: Symfony
Finding Job on South East Asia (and other 3rd world cohntries) : Laravel.
If you want to find job on US, ditch php and learn NextJS, or go, or rust.
1
u/Odd-Ground-7537 Nov 08 '25
If you want to be a good backend dev, or have such plans for the future, symfony is the ultimate option from the available fws. Later if you try other langs like c#, java whatever, lot of concept will be familiar. Always learn the principals behind the technologies. Tech masters can be replaced within a day if the tech stack is changing.
1
u/SVLNL Nov 08 '25
Have not yet run it myself but perhaps its something for you: https://doppar.com/
1
u/cosmologist Nov 08 '25
Symfony one love
1
u/xreddawgx Nov 08 '25
Hey guess what, you know base php? Laravel or Symfony isnt a requirement because both are written in php and you should be able to look at both and understand what they do from the readme and the code in an appropriate amount of time.
1
u/snoogazi Nov 09 '25
Laravel. It's elegant and powerful, and I've used it for 10+ years now.
That said, I wish you the best finding a job. It's f'ing hard out there. I'm not trying to discourage you, it's just that I have 24 years experience and it took me a year to find a job. Experience matters. Get on board with a framework as soon as you can and learn it.
1
u/doonfrs Nov 09 '25
I used zend, yii 1 then 2, code Igniter, in main projects.. When I used Laravel I discovered that I was wasting my time. Laravel is modern, fast and covers all your business requirements. Also it is a full ecosystem, with a big community. I've spent months migrating old projects to Laravel and it worth it.
1
u/amart1026 Nov 09 '25
In the US, over the past 5 years, I’ve seen a lot more job postings for Laravel than Symfony. Never seen one for Slim. There also seems to be plenty of work for Word Press, though at significantly less pay.
1
u/FreeLogicGate Nov 09 '25
I don't know where you heard that Symfony is "more difficult" than Laravel, but that's inaccurate. Both frameworks have a substantial learning curve and require understanding of the same PHP language features. They are both fundamentally Dependency Injection frameworks. Laravel has (and encourages the use of) "laravel facades" which are "magical" in that they facilitate static method calls to access what are actually Service objects. For many developers, this is "code smell". Here's an example from the Laravel manual:
For new developers, this can be very enticing -- being able to reach into some magical "cache" and pluck out the user object within a Controller Method, without any real understanding of how or why this works.
Symfony eschews magic in favor of "Autowiring". Without going too deep into this, both Symfony and Laravel have services and a dependency injection container that creates the services your application needs and makes them available. Facades hide this in Laravel, whereas Symfony implements the autowiring that simply requires you to pass the service you want to utilize as a parameter. Eventually you will most likely end up creating your own services, and Symfony provides the "bundle" which can be used for a single service or a collection of services, controllers and templates. This is differentiator in that the Symfony framework is a collection of symfony bundles, which makes the bundle a more sophisticated component feature, but also is inherently more complicated.
It's entirely possible to create web applications just using existing framework components, and other component libraries added via composer, so someone starting out in either framework can be effective using either one, without having to master the underlying architectural differences, but eventually there's a learning curve regarding services in either framework.
1
u/yourteam Nov 10 '25
Symfony.
Laravel is something else and I mean in the bad way: all magic and proxies just to look "cool"
1
u/TriotechMaintenance May 05 '26
Du point de vue de l'employabilité, Laravel et Symfony sont les deux meilleurs.
Laravel est assez simple à prendre en main, si tu veux démarrer vite c'est un bon choix.
Symfony nécessite beaucoup plus d'efforts. Mais c'est un environnement très solide, qu'on retrouve énormément dans les environnements métiers et dont beaucoup de projets vivent (très) longtemps. La courbe d'apprentissage est plus raide, mais le retour sur investissement est impressionnant, que ce soit pour les entreprises ou les développeurs.
0
u/[deleted] Nov 08 '25
[deleted] — view deleted comment
3
u/[deleted] Nov 08 '25
[removed] — view removed comment