Plugin Template
Brief Description
Plugin Template is a ready-made template for quickly creating custom plugins for Mini-Bucket. Everything you need to start development is included: file structure, authentication, API integration, database, and ready-to-use code examples.
What is it for?
Developing plugins for a control panel can be challenging. Plugin Template takes care of all the routine setup work and lets you jump straight into writing useful functionality.
What you get right away:
-
✅ A fully functional clean-slate plugin
-
✅ Automatic authentication and API key validation
-
✅ Ready-to-use local and remote database (SQLite) support
-
✅ Examples of system API interaction
-
✅ Built-in remote host installation mechanism
Features
📁 Ready-made Structure
-
plugin_template.php— main plugin interface -
plugin_template_api.php— handles all AJAX requests -
init.php— initialization and data passing to interface -
plugin.js— client-side logic and helper functions -
plugin.css— plugin styles
🔐 Built-in Security
-
Automatic API key validation
-
Session support for authenticated users
-
CORS headers for proper remote server communication
🗄️ Data Management
-
Ready-made SQLite database initialization
-
Example table creation and queries
-
Local and remote operation support
🚀 Remote Installation
-
Automatic detection when plugin is missing on remote server
-
Plugin installation mechanism for remote hosts directly from the interface
🎨 UI Components
-
Responsive design with Bootstrap 5
-
Font Awesome icons
-
Notifications and preloader
-
Examples of cards, modals, and data output
How to use?
-
Copy the template to
/var/www/minib/plugins/installed/your_plugin/ -
Rename files to match your plugin name (optional)
-
Study the examples in the code — everything is commented and clear
-
Add your logic in sections marked
MODIFY THIS -
Done! The plugin is already working and available in the panel menu
Built-in Examples
-
📊 Database operations — saving and retrieving data
-
🌐 API calls — example of remote server status check
-
🎯 Interactive cards — clear demonstration of interactions
-
📟 Output area — for displaying results
Who is it for?
-
Developers creating plugins for Mini-Bucket
-
System administrators wanting to extend panel functionality
-
Anyone who wants to start development quickly and correctly
Technical Details
-
PHP — server-side logic
-
SQLite — embedded database
-
JavaScript — client-side
-
Bootstrap 5 — interface
-
Font Awesome — icons
Plugin Template — your launching pad into Mini-Bucket plugin development. Install the template and start creating your extensions today!
More information:
WiKi: https://mini-bucket.ru/wiki/knowledge-base/dev-pugins/plugin-development/
