Requiring Composer to run plugin #16
Replies: 3 comments 2 replies
-
Instead of requiring potential users to run the build process of a plugin themselves (Git clone/download zip from GitHub, run build tasks) every plugin should have an installable ZIP-release available. That's what I do with DataInMap. With every release I generate a new distfile which is a ZIP-file that's ready to be uploaded to a WordPress site. Want to develop on it? Simply git clone and run the building steps. Nothing new there I'd say. I tend to provide a docker-compose file that provides a ready to use WordPress environment to work on that plugin. But I also include it in existing projects and simply use its path as a docker volume. One thing that can (or will) be problematic is when multiple plugins use the same additional libraries because of duplicate functions and classes. I'm not sure about the community guidelines on including third-party libraries in a plugin, but I do now WordPress doesn't allow plugins in their directory that solely provide access to an additional library. But after typing this maybe I don't quite understand the issue you're experiencing and trying to fix. Could you elaborate? |
Beta Was this translation helpful? Give feedback.
-
I've just opened a PR in Bitbucket, the repository will be migrated in the nearby future but for now still in Bitbucket. |
Beta Was this translation helpful? Give feedback.
-
The addition has been added to v3.4.8. |
Beta Was this translation helpful? Give feedback.
-
Several Open Webconcept plugins (PDC, FORMS and PUB) require additional libraries that are loaded trough composer. This blocks the plugins from being installed on a “normal” WordPress installation and block the usage of any WordPress container that is currently available form the WordPress community, bitname or docker community. In stead developers are forced to build a composer based WordPress themselves (which requires time and brakes the semantic versioning system) there is a loooooooong list of pro’s and con’s there.
I would like to make a design decision to either
• Follow the community guidelines and maintainers of the framework we use (WordPress)
• Switch to a framework that uses composer (like symphony or zend)
• Include libraries in the the plugins and omitting the whole composer dependency all together (minor code duplication)
Beta Was this translation helpful? Give feedback.
All reactions