How can I check if a plugin is installed and enabled, in Craft 3?
PHP

\Craft::$app-&gt;plugins-&gt;isPluginInstalled('plugin-handle')


Twig

{% set installed = craft.app.plugins.isPluginInstalled('plugin-handle') %}


There is also a isPluginDisabled and a isPluginEnabled function.
Here is a class reference craft\services\Plugins