Skip to content

Plugin Development

Introduction

Plugins are a great way to extend the functionality of Botble CMS. They allow you to add new features to your website without modifying the core code. This guide will walk you through the process of creating, activating, and managing plugins in Botble CMS.

WARNING

Dev tools are removed in the download package, you need to delete folder /vendor and run command composer install to reinstall it, then you can use dev commands.

Creating a Plugin

To create a new plugin, use the following command:

bash
php artisan cms:plugin:create <plugin-name>

For example, to create a plugin named "Foo":

bash
php artisan cms:plugin:create foo

This command will generate a new plugin with the standard structure in the platform/plugins/foo directory.

Plugin Development Guides

The plugin development documentation is organized into the following sections:

  1. Plugin Structure - Learn about the structure of a plugin and its key components
  2. Basic Components - Understand the basic components of a plugin (Models, Controllers, etc.)
  3. Advanced Components - Explore advanced components like Events, Listeners, Middleware, etc.
  4. Frontend Integration - Learn how to integrate your plugin with the frontend
  5. FAQ - Find answers to frequently asked questions about plugin development

Video Tutorials