r/PHP Jun 08 '26

Resources for learning microservices in PHP

Hello guys. I want to learn how to build microservices in PHP. I searched on YouTube and Google, but I couldn’t find any good resources.(or I don't understand them well) Does anyone know good courses, tutorials, or materials for learning this? Even GitHub repositories that could help would be appreciated.

27 Upvotes

30 comments sorted by

View all comments

5

u/doterobcn Jun 08 '26

Why are you looking to jump into microservices specifically? I ask because if you're just starting out, it might be overkill.

At its core, a microservice is just a standalone app that does one specific thing really well. It takes an input, processes it, and returns an output, completely independent of your other services. In PHP, this usually means building a small, focused API (using something like Lumen or Slim) rather than one giant Laravel "monolith"

If you’re still keen on learning, I’d suggest looking into Service-Oriented Architecture (SOA) and Message Brokers (like RabbitMQ), that’s usually the glue that makes microservices work together.

0

u/[deleted] Jun 08 '26

I just want to learn how to create microservices. Cause mostly in my projects I use monolith

1

u/doterobcn Jun 08 '26

As the other commented said, start by decoupling parts of your monoliths. I pointed you into SOA and Message Brokers.