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

zaster's avatar

Livewire for Rest Api Project

Is Livewire a good choice for a rest api project ?

0 likes
8 replies
Nakov's avatar

Very short answer. No!

Look at the landing page, it says

Livewire is a full-stack framework for Laravel that makes building dynamic interfaces simple, without leaving the comfort of Laravel.

There is no dynamic interface on a REST API.

2 likes
zaster's avatar

In that case. If i am to learn the TALL Stack and want to get involved in a REST API project, what should I learn ? Is it Vue ?

1 like
tykus's avatar
tykus
Best Answer
Level 104

The A and an L in TALL is Alpine and Livewire, so your REST API project is not a TALL-stack project.

A REST API can be consumed by any number of JS frameworks (Vue, React, etc.) or mobile apps.

2 likes
martinbean's avatar

@zaster No. Why would it be? Livewire are view components. REST APIs typically consume and return JSON.

2 likes
wizzym's avatar

You guys are talking about REST but i think you don't even understand what it is and the fact that it can even return HTML and still being called a REST API. Not saying livewire is REST, livewire's api calls to update the state and render components do no respect the REST architecture.

Just because it's JSON doesn't mean it's REST, the first REST api was created before json.

Before you even consider writing a "REST" api or give opinions about it you should read more about the subject.

martinbean's avatar

@Snapey Don’t know. I’m seeing a few of these new accounts pop up solely to dig up and old thread and reply with some “OMG, ur so wrong!” response.

5 likes

Please or to participate in this conversation.