Plugin development: Is there a composer package that provides access to the WordPress API/Core through an OOP interface?

From time to time I have to develop custom WordPress plugins and because I’m used to modern PHP (Laravel/Symfony), I created my own plugin scaffolding that has a service container with dependency injection, an internal (modern style) router, and common non-WordPress database drivers. It works well for me and lets me use my common workflow even in WordPress.

What I’m looking for is a proper WordPress API abstraction that is OOP based. So instead of calling all those special functions all over the place, I’d like to use a class that provides access to all the different WordPress functions. The goal for me is to inject the WordPress dependency as needed and never call a WP-Core function directly. Does anyone here know about a composer package that provides an OOP interface to the WordPress API?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer