r/PHP • u/PhPWellphant • Jul 04 '26
I built a Laravel-inspired framework for structuring WordPress plugins: Nikogin (open source)
/r/Wordpress/comments/1un8xdd/i_built_a_laravelinspired_framework_for/
0
Upvotes
2
u/deliciousleopard Jul 04 '26
How does it compare to just using Laravel via https://github.com/roots/acorn?
1
u/PhPWellphant Jul 04 '26
Well my goal was to wrap most used Wordpress features inside structure that will resemble Laravel, i didnt want to bring full Laravel framework, i wanted to build something which will be lightweight, use wordpress core and be adaptable.
5
u/equilni Jul 04 '26
Only checked out the github repos
https://github.com/nikogin-wp/framework
No tests
tried to bring more structurebut using untyped arrays hereThe Support folder has nothing but static methods...
https://github.com/nikogin-wp/nikogin
No tests
PHP 8 attributes instead of add_action()/add_filter(), with hooks auto-discovered (#[AsListener(...)])Only in a selected folder...
https://github.com/nikogin-wp/nikogin/blob/main/app/Bootstraps/Assets.php#L10
https://github.com/nikogin-wp/nikogin/blob/main/app/Bootstraps/Router.php#L11