Back

Looking for opinions from developers who've worked on WordPress and Laravel


Howdy, wonderful community!

I'm seeking opinion from developers who've developed for both WordPress and Laravel about migrating from WP to Laravel for my web app development project. I'll explain in brief:

I began learning PHP about a year ago and picked up WP as platform to begin development. At present, I'm at a stage where I've developed about 5 web applications and am confident enough to use WP Custom Post Types for almost everything that I need. I've faced no problems whatsoever using WP as a 'framework' for my web applications.

I must mention that I'm developing apps as member sites of WordPress Multisite network; where each individual site of the network acts as an app: Event listing, Job Board, Resume Builder, QnA etc.

Frankly speaking, I've not found a solid reason yet to move away from WordPress.

--BUT--

Looking at the future, the count of these apps will, some day, cross 50 or 100 or even more. Not that I'm worried about scalability, I'm wondering if I'm doing the 'right thing' by sticking to WordPress as an app development platform; which it is not.

Custom Post Types are all good and let me build things quickly. I've not found any issues. However, in the recent times, I've been intrigued by Laravel and been really enjoying what it offers. I, however, cannot make up my mind whether I should really consider migrating to Laravel. It's definitely going to involve lot of learning; but I'm confident that I should be able to pick it up in 2-3 months of dedicated time.

Could you please let me know -

  1. What are the biggest advantages that Laravel would offer in my case over WordPress?

  2. As I guess, I'll have to rewrite a lot of stuff. But would the time and efforts be worth it?

  3. How's your experience about getting help for various problems that developers face? With WordPress, 90% of the times the problem has already been answered on the Internet. Is it easy to get help from the community?

  4. What are the reasons I should really consider migrating my apps project to Laravel? Is there something I 'ought to know' about moving from WP to Laravel?

I thank you in advance for taking out time to read my question. I'd really appreciate your suggestions and opinions.

abdulkhaliq replied 6 months ago

Hi,

You wrote a big letter. :) never mind.

WordPress is really good for simple blogs, one page, cms or so and so. But when it's come to enterprise level where you need take care many things like security, durability, scalability, speed, web services api and so on, in that case you need so reliable framework like Laravel, Phalcon, Zend or many are in the market.

You should choose Laravel because It's very easy to pick up and use Community is very big Yes you can get max of issues already answered over internet. You are completely free to develop any kind of web software/application. Secured web services. Moreover, Laravel 5.2 is fully compatible with PHP 7. This newest version of PHP language makes web applications faster and more secure, and it requires fewer servers to handle the same amount of requests per second (reduce hosting expenses). At the same time, most of the themes and plugins of WordPress are not fully compatible with PHP 7. Moving WordPress website from PHP 5 to PHP 7 can be a time-consuming thing to make.

and there are so so many advantages.

Thanks.

TheBigK replied 6 months ago

@abdulkhaliq : Thank you for your response. I really appreciate it.

I'm already building stuff with php7; and except for the theme; I don't use anything third-party. Would you mind explaining a bit more about security and scalability? WP seems to be quite secure and scalable as well. I'm wondering if scalability should be my priority just yet; I've a couple of thousand users which WP seems to handle very well for 2GB of memory.

At this time, my main concern is mostly about knowing the biggest advantages of switching over to Laravel because learning and converting my existing code to Laravel is going to take at least 3-4 months of time.

mark2016 replied 6 months ago

I would say the biggest advantage is flexibility and future maintenance. As the number of your apps grows, and your user base grows with it, you will have hard decisions to make about any breaking changes future versions of WP brings. This maintenance cost will become significant eventually. With a custom build like Laravel, there isn't such a need to update at every opportunity. With WP it is almost mandated that you must upgrade with every release, and you may be forced to fix your apps for compatibility at the time.

Wordpress security while OK, it is a platform that does attract a lot of attacks. Building in Laravel or any other custom framework will reduce these drive-by script-kiddie type nuisances. Also there are multiple security patches released for WP on a frequent basis which mandate an update (more maintenance and possible breaking changes).

I think you overestimate how long it will take to learn Laravel; if you already have a solid PHP foundation I think a month or less will be adequate. Why not give it a shake for a few weeks and see how far you can track.

In terms of community support, it's mixed. I think you won't know until you try it out, but as I said earlier, I don't think it will take you long to get going. If you understand data models and some basic database design, it will make your job easier.

I would not convert your existing code to Laravel; just code something new and see how you go. You might decide that a different direction or platform is preferable.

I don't think you need to worry about scale-ability just yet. "A few thousand users" while is sounds like a lot, is very low in terms of concurrent users, which is what matters. Once your sites are big enough to worry about load, you should be in a position to throw money at the problem ;)

It is always good to have many tools in your toolbox. Laravel should allow more flexibility than Wordpress. Ultimately you can only push WP as far as it's boundaries allow, outside of which it becomes harder and harder to fit your app into something that it wasn't designed for. Laravel (or any other framework that allows custom build) doesn't have this limitation. I'm not familiar with Custom Posts Types, but in terms of functionality, if it actually does what you need, then stick with it. If the WP functionality does all you need then the only reason to migrate to a framework is the ongoing maintenance costs that comes with being tied to WP which is constantly having updates.

M

ckbrewer15 replied 6 months ago

Hi TheBigK,

I hope I am allowed to post links around here, I am new to the forum. Maybe this article could help you decide a little as well as it discusses WordPress vs custom coding (Laravel):

https://nerdcode.io/how-to-increase-your-productivity-by-being-a-lazy-coder/

Have a great day!


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us