Saturn
Saturn 1.0.0
Saturn 1.0.0
  • Saturn 1.0.0
  • 😁User Guide
    • Settings
      • Maintenance Mode
      • Website Environment
    • Security
      • Good security practices
      • Security Notice
    • System Requirements and Support
    • Update your Server
  • ⚠️Troubleshooting
    • Errors
      • Database Errors
      • Saturn Errors
      • Checksum Issues
  • 🧩Plugins
    • Plugins in Saturn
    • Official Plugins
      • Control Panel
        • User Guide
        • Developer Guide
          • Control Panel Hooks
    • Marketplace Plugins
  • 💻Developer Documentation
    • Getting Started
    • Libraries and Functions
      • AccountManager
        • Permissions
        • UUID
      • DatabaseManager
        • DBMS
          • Sending Database Requests
          • Query Information
          • Database Security
        • Database Actions
      • HookManager
        • Actions
        • Runners
      • HTTP
      • LanguageManager
      • PluginManager
        • Manage Plugin Content
        • Plugin Compatability
        • Check if a plugin is loaded.
        • Fetch Manifest
      • RouteManager
      • SecurityManager
        • Cross-site Request Forgery
        • Cross-site Scripting
      • SessionManager
        • Start and End Sessions
        • Validate Sessions
        • Session Data
      • TestManager
    • Security
    • Plugins
      • How to structure a plugin
      • Manifest
      • APIs
      • Checking for Dependencies
      • Power Features
        • 💤Hibernate
    • Hooks
    • Tests and Profiling
    • Global Variables
Powered by GitBook
On this page
  • Checking if a specific plugin is loaded.
  • Get a plugin's manifest file.
  1. Developer Documentation
  2. Libraries and Functions

PluginManager

Checking if a specific plugin is loaded.

If your plugin depends on another plugin, you should put this in your Manifest.

This function will check if the requested plugin has been loaded by Saturn. It will return a true/false boolean result.

use Saturn\PluginManager\PluginLoader;

$PluginLoader = new PluginLoader();

if ($PluginLoader->PluginLoaded('ControlPanel')) {
    // The plugin is installed! It's safe to do stuff with it now.
} else {
    // The plugin is not installed :(
}

Get a plugin's manifest file.

use Saturn\PluginManager\PluginManifest;

$PluginManifest = new PluginManifest();

// The manifest will be returned to this variable as a JSON object.
$Manifest = $PluginManifest->GetManifest('ControlPanel');
PreviousLanguageManagerNextManage Plugin Content

Last updated 1 year ago

💻