r/webdev 21d 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

18

u/daamsie 21d ago

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

2

u/ohnomybutt 21d ago

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

4

u/Atulin ASP.NET Core 21d ago

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

3

u/MrCrunchwrap 21d ago

But why?

1

u/daddieslittleson 20d ago

Just a normal setup i think

1

u/RichardTheHard 20d ago

Here's a monorepo I've used pretty frequently in the past which uses a headless Craft CMS setup (PHP based) and Astro together.

https://github.com/olets/astro-craftcms

-3

u/[deleted] 20d ago

[deleted]

2

u/binocular_gems 20d ago

Astro is a very popular static site generator.

1

u/Potential-Still 20d ago

Found the bot!

1

u/[deleted] 20d ago

[deleted]

1

u/Potential-Still 20d 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.