![[FREE] I built a Laravel-inspired framework for structuring WordPress plugins: Nikogin (open source)](https://external-preview.redd.it/RYImqdfohxIOyckoJtfcZEH3KAQaJos4y0DA9Idhebg.png?width=1080&crop=smart&auto=webp&s=c4614b04bc709ccb771414e5bf3b820bf8f62afd)
[FREE] I built a Laravel-inspired framework for structuring WordPress plugins: Nikogin (open source)
Hey everyone,
Quick note before I start: English isn't my first language, so I used AI to help clean up this post.
I've been building WordPress plugins for a while and got tired of the usual mess: giant files full of add_action() calls, no real structure, and no clean way to separate business logic from WordPress's hooks and globals. So I built Nikogin, a small, Laravel-inspired framework for writing structured, maintainable WordPress plugins.
I actually developed it in a private repo over the last 1-2 years, testing it with a few colleagues on real projects along the way. They found it really useful, which is what convinced me to clean it up and release it publicly.
What it gives you:
- A service container for dependency injection
- A repository pattern for custom tables, post types, and taxonomies
- PHP 8 attributes instead of
add_action()/add_filter(), with hooks auto-discovered (#[AsListener(...)]) - Controllers for REST endpoints and admin pages
- Vite + TypeScript + SCSS for frontend assets, with a manifest-based loader
- A CLI (
php nikogin make:*) to scaffold repositories, listeners, controllers, migrations, and more
It's still early days for the public version, so I'd love feedback, bug reports, or just opinions on the approach, especially from anyone who's tried to bring more structure into WordPress plugin development before.
- Skeleton repo: https://github.com/nikogin-wp/nikogin
- Docs: https://nikogin-wp.github.io/docs/
MIT licensed. Happy to answer any questions in the comments.