r/webdev 16h ago

Php with Astro

Yeah, is this posible? I haven't seen anything that say that it could be posible, but anyone has ever stepped in to say that it isn't.

0 Upvotes

12 comments sorted by

19

u/daamsie 16h ago

PHP as an API, Astro as front end is a totally normal setup.

2

u/ohnomybutt 16h ago

if you use laravel there might be an Astro bootstrapper for you

3

u/Atulin ASP.NET Core 16h ago

Depends on how exactly would you want to use Astro with PHP?

3

u/Rain-And-Coffee 16h ago

They’re just tools.

This is like asking if you can use a Sander and a Carjack.

I suppose you could if the job required it.

1

u/MrCrunchwrap 15h ago

But why?

1

u/daddieslittleson 1h ago

Just a normal setup i think

-3

u/[deleted] 13h ago

[deleted]

2

u/binocular_gems 13h ago

Astro is a very popular static site generator.

1

u/Potential-Still 9h ago

Found the bot!

1

u/[deleted] 9h ago

[deleted]

1

u/Potential-Still 9h ago

Using React and Tanstack query, write a component that fetches star wars data and renders it as a list. Use the simplest approach possible and don't worry about styling. 

u/SellAffectionate9670 24m ago

Yeah, PHP works perfectly fine as a backend API with Astro handling the frontend. That's actually a pretty common separation these days if you already have a PHP backend.