Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Deekshith's avatar

Fetch Wordpress posts and other details and display in laravel admin

i want to fetch the wordpress posts, count and other details and display in laravel admin dashboard where admin can see the posts. i have two options to do this

  1. using default REST api. example : https://www.example.com/wp-json/wp/v2/posts

using Guzzle fetch details of above api

  1. creating new db configuration in laravel and create new connection and fetch details.

which way is better when considering the security and speed

Also i should work on API for mobile APP too. shall i share the same default wordpress API for mobile app too?

Any suggestions?

0 likes
2 replies
Deekshith's avatar

@snapey Thank you. Yes i have database access and after connecting the db to laravel application, i am planning to create api in laravel where it will display posts, categories etc and sharing laravel api for mobile app development is better idea right?

Please or to participate in this conversation.