diff --git a/PHPCI/Controller/PluginController.php b/PHPCI/Controller/PluginController.php
index 56d01f3e..c0654a7d 100644
--- a/PHPCI/Controller/PluginController.php
+++ b/PHPCI/Controller/PluginController.php
@@ -11,6 +11,7 @@ namespace PHPCI\Controller;
use b8;
use PHPCI\Model\Build;
+use PHPCI\Plugin\Util\LoadedPluginInformation;
/**
* Plugin Controller - Provides support for installing Composer packages.
@@ -59,8 +60,13 @@ class PluginController extends \PHPCI\Controller
$this->view->required = $this->required;
$json = $this->getComposerJson();
- $this->view->installed = $json['require'];
- $this->view->suggested = $json['suggest'];
+ $this->view->installedPackages = $json['require'];
+ $this->view->suggestedPackages = $json['suggest'];
+
+ $pluginInfo = LoadedPluginInformation::buildFromYaml(
+ PHPCI_DIR . "vendor/composer/installed.json"
+ );
+ $this->view->plugins = $pluginInfo->getInstalledPlugins();
return $this->view->render();
}
diff --git a/PHPCI/View/Plugin/index.phtml b/PHPCI/View/Plugin/index.phtml
index f9170032..d2731f2f 100644
--- a/PHPCI/View/Plugin/index.phtml
+++ b/PHPCI/View/Plugin/index.phtml
@@ -1,4 +1,4 @@
-
Plugins
+Packages and Provided Plugins
PHPCI cannot automatically install/remove plugins for you, as either the shell_exec()
function is disabled or PHPCI could not find Composer. PHPCI will update composer.json for you, but you will need to run Composer manually to make the changes.
@@ -21,7 +21,30 @@
-
Installed Plugins
+
Available Plugins
+
+
+
+
+ Name
+ Class
+ Provided by Package
+
+
+
+
+
+ = $plugin->name; ?>
+ = $plugin->class; ?>
+ = $plugin->source; ?>
+
+
+
+
+
+
+
+
Installed Packages
@@ -32,7 +55,7 @@
- $version): ?>
+ $version): ?>
= $package; ?>
= $version; ?>
@@ -48,7 +71,7 @@
-
Suggested Plugins
+
Suggested Packages
@@ -59,8 +82,8 @@
- $version): ?>
-
+ $version): ?>
+
= $package; ?>
= $version; ?>
@@ -76,7 +99,7 @@
-
Search Packagist for More Plugins
+
Search Packagist for More Packages