An example plugin demonstrating a method for structuring WordPress plugins using Composer and version 2.0+ of the WP Plugin Library.
Take a look through composer.json
to see how namespaces are prefixed using Strauss.
The Container
, Plugin
, and ServiceProvider
classes show examples of using those various pieces in your own plugin to add more structure, but they're completely optional.
Use as much or as little as you want from the plugin library.