Built a Minimal Laravel-Style Structure for WordPress Plugins — Thoughts?

Hey everyone,

First off, big kudos to the Roots team and the wider WordPress community — the work you’re doing is seriously impressive. :raising_hands:t3:

I recently had to jump back into WordPress for a project, and naturally, I ended up checking out the Sage theme again. Coming from a Laravel background, using Sage just felt incredibly natural — huge props to you all for bridging that gap so smoothly!

Now, as someone who’s in and out of the WordPress world, I often find it a bit tricky to keep up with the deeper workings of WordPress, especially around plugin architecture.

Since I’m planning to publish a few plugins soon, I wanted to share a slim MVC-style structure I’ve been experimenting with — heavily inspired by Laravel.

To be clear: I’m not here to promote a repository. I’d just love for anyone interested to take a look, maybe share feedback or ideas for improvement.

I’ve intentionally kept it extremely lightweight — just enough to wire up the necessary components (controllers, service providers, etc.) so you can focus on building functionality without getting bogged down in manually managing hooks, filters, or boilerplate setup.

If this sounds interesting, happy to share more details or get into discussion. Would love any feedback!

3 Likes

I took a quick glance at it and it looks really, really good.

If I ever have to do a larger plugin, this is definitely what I’ll be using. Thanks for making it!

1 Like