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

robj's avatar
Level 9

Showing Laravel data on a WordPress site

Hi all. We have a WordPress site setup to provide landing pages etc for a new app. The app is Vue with a Laravel API backend. Everything is provisioned by Forge on Digital Ocean.

I'd like to show some live data from the app on the WordPress site. I was wondering if anyone had any experience or recomendations for best practice?

My current ideas are:

  1. creating an HTML page on the API server to include in an iframe on wordpress
  2. a js widget from the API server
  3. creating a Vue "widget" and including in an iframe on wordpress (I like this as it handles the CCS)

Would be good to hear some other opinions!

Thanks, RobJ.

0 likes
2 replies
robj's avatar
Level 9

Hi Tray2 - sorry for the delay getting to this.

I had a look at the link you provided but found it a bit advanced for what I was looking for.

I ended up creating a custom vue widget as per #3 ... I found that the quickest route. I did have to fiddle a little with the nginx config on the app server to allow pages to be included in an iframe but overall it was pretty quick.

Thanks for your input. RobJ

Please or to participate in this conversation.