Ayzi's avatar
Level 1

Wordpress to Laravel

How can I change my WordPress site to Laravel framework for further development? How to change WordPress databases to Laravel? It's a marketplace and i want to transfer vendor's data.

0 likes
9 replies
Ayzi's avatar
Level 1

There must be some way to transfer wp databases to laravel one's. only thing i need is to transfer vendor's data to laravel.

Tray2's avatar

Yes there is but every step is manual and I wouldn't recomend it. Since the Wordpress database model is kind of a black box. So unless you are very familiar with it it will cause you a lot of greiveinces.

In my opinion you have two options.

  1. Continue using wordpress.
  2. Build a copy of your wordpress app in Laravel and try to export the most relevant data into csv and then import it to your database.

Unless you are really familiar and done a lot of stuff in laravel I would not attempt option 2 at all. And like @topvillas said Laravel from scratch is a really good place to start.

1 like
Ayzi's avatar
Level 1

Thanks everyone for answering the question :) but the thing is i don't want whole wordpress database to be converted into laravel. Only the tables that are connected with vendor's data like pictures, descriptions etc to be converted into some sort of databases that is supported for laravel. I used WC Marketplace (https://wordpress.org/plugins/dc-woocommerce-multi-vendor/) plugin for the marketplace.

Ayzi's avatar
Level 1

@DivDax can i retrieve WordPress specific database data i mean for the specific plugin in the wordpress ???

ElbaShaw's avatar

Yes, you can.

But, it takes a lot of time coding, debugging, and testing. WordPress and laravel work in a different way.

You should also consider converting the plugins used in your website. And it takes a lot of time to study, code, and everything.

You know, it is not an easy job to convert from one framework to another, you need to know how the two works.

So think about it, are you willing to spend thousands of hours reading, coding, debugging, and testing? If yes then go ahead and start coding now.

liveinroot's avatar

In my case, I've built a copy of functionality in Laravel then wrote DB:seed that makes call to WordPress API routes and collects data in that way as I want to see it and put in the new DB. Works like a charm doesn't take a lot of time to migrate DB, but you still have to develop your Laravel app.

masmaleki's avatar

For migrating a WordPress website, including WooCommerce or other plugins, the most effective approach is to utilize the WordPress REST API. First, ensure that the REST API is enabled in the WordPress admin panel.

From your Laravel application, you can design migration models and controllers with any structure and fields that align with your new application's requirements.

Next, implement an import function (as a service or another component) to interact with the WordPress REST API. After receiving the response from WordPress, you can seamlessly map the data from the old WordPress structure to your new Laravel models and database fields according to your desired schema.

This method provides flexibility and allows you to tailor the migration process to fit your specific needs.

I hope this approach proves helpful!

2 likes

Please or to participate in this conversation.