# PluginManager

## Checking if a specific plugin is loaded.

{% hint style="info" %}
If your plugin depends on another plugin, you should put this in your Manifest.
{% endhint %}

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

<pre class="language-php"><code class="lang-php"><strong>use Saturn\PluginManager\PluginLoader;
</strong>
$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 :(
}
</code></pre>

## Get a plugin's manifest file.

```php
use Saturn\PluginManager\PluginManifest;

$PluginManifest = new PluginManifest();

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.saturncms.net/1.0.0/dev/libraries-and-functions/pluginmanager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
