Skip to the content.

Overview

Craft 3 introduced the concept of a module, which didn’t previously exist in Craft 2. Back then, custom business logic was simply packaged into a unique plugin, and tossed into the /plugins directory alongside all of your other plugins.

But now, the branches have diverged. In Craft 3, a plugin is (almost always) something that was downloaded via the Plugin Store. Plugins are broadly purposed, to accommodate the needs of many sites instead of just one. Gone are the days of adding a custom plugin alongside your other downloaded plugins.

Instead, you’ll want to install a module to accommodate your site’s custom business logic. For all intents and purposes, a module is nearly identical to a plugin in Craft 3. While the architecture between the two is very similar, there are distinct pros & cons of using a module instead of a plugin.

Pros

Cons

It’s worth noting that the architecture of this Business Logic Module is designed to exactly match the standard architecture of a plugin. You could theoretically use this module template to develop a plugin, just as easily as you can with a module.